Skip to main content

ISupportNavigation.OnNavigatedTo(INavigationArgs) Method

Allows you to get the specific data passed via the ISupportNavigation.OnNavigatedFrom method.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation


void OnNavigatedTo(
    INavigationArgs args


Name Type Description
args DevExpress.XtraBars.Docking2010.Views.WindowsUI.INavigationArgs

An INavigationArgs object that stores data related to the current navigation process.


You can pass specific information when navigating through the Content Containers. To do so, implement the ISupportNavigation interface for your Documents’ content. After you have implemented the interface methods, use the ISupportNavigation.OnNavigatedFrom method to assign the required data to the Parameter property. This data will be passed to the OnNavigatedTo method for the control to which an end-user navigates. For example, the following code passes the selected GridControl row from userControl1 to userControl2 when navigating.

public partial class userControl1 : UserControl, ISupportNavigation {
    . . .
    public void OnNavigatedFrom(INavigationArgs args) {
        args.Parameter = gridView1.GetDataRow(gridView1.FocusedRowHandle);

public partial class userControl2 : UserControl, ISupportNavigation {
    . . .
    public void OnNavigatedTo(INavigationArgs args) {
        //do something with args.Parameter

See the Application Hierarchy and Module Navigation topic for the details.

See Also