Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

INavigationAware.NavigatedTo(NavigationEventArgs) Method

Called automatically when an end-user navigates to a View that implements the INavigationAware interface.

Namespace: DevExpress.Xpf.WindowsUI.Navigation

Assembly: DevExpress.Xpf.Controls.v24.2.dll

NuGet Package: DevExpress.Wpf.Controls

#Declaration

void NavigatedTo(
    NavigationEventArgs e
)

#Parameters

Name Type Description
e NavigationEventArgs

A NavigationEventArgs object that contains event data.

#Remarks

INavigationAware is the interface that provides navigation methods for WindowsUI applications. To use these methods, implement the INavigationAware interface for your application screens (Views) as illustrated in the following code:

public partial class MainView : UserControl, DevExpress.Xpf.WindowsUI.Navigation.INavigationAware {
     public MainView() {
         InitializeComponent();
         . . .
     }
 }

After that, implement the INavigationAware methods for your View. To do so, right-click the INavigationAware in Visual Studio and select the ‘Implement Interface’ item from the pop-up menu.

DXWindowsUI - INavitaionAware implementation

Along with the NavigatedTo method, the INavigationAware.NavigatingFrom and INavigationAware.NavigatedFrom method will also be implemented.

If you do not wish to implement the INavigationAware interface manually, use the NavigationPage object for your application screens instead of standard UserControl objects. See the Navigation topic to learn more.

See Also