NavigationFrame.BackNavigationMode Property
Gets or sets the Back button navigation destination for all the screens (views), managed by the NavigationFrame.
Namespace: DevExpress.Xpf.WindowsUI
Assembly: DevExpress.Xpf.Controls.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Controls, DevExpress.Wpf.Navigation
Declaration
Property Value
Type | Description |
---|---|
DevExpress.Xpf.WindowsUI.BackNavigationMode | A BackNavigationMode enumerator value that specifies the Back button navigation destination. |
Remarks
The BackNavigationMode property allows you to specify whether clicking the Back button will navigate to a previous or root view.
For example, in the Navigation Buttons section of the Navigation article, we created a simple application with the root view containing 3 Tiles (MainView) and 3 detailed views (View1, View2 and View3), each containing 2 NavigationButtons to navigate through these detailed views. The animation shown in the Navigation article clearly shows that clicking the Back button returns you to previously selected views. This default behavior corresponds to the BackNavigationMode.PreviousScreen value of the BackNavigationMode property. Alternatively, you can set the BackNavigationMode property to BackNavigationMode.Root - in this case clicking the Back button will navigate you to a root view (e.g., a View set as the NavigationFrame’s NavigationFrame.Source).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BackNavigationMode property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.