Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Wpf.Controls

Declaration

public BackNavigationMode BackNavigationMode { get; set; }

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).

See Also