AppBar.BackCommand Property
Gets or sets a custom command invoked by the predefined Back button.
Namespace: DevExpress.Xpf.WindowsUI
Assembly: DevExpress.Xpf.Controls.v24.2.dll
NuGet Package: DevExpress.Wpf.Controls
Declaration
Property Value
Type | Description |
---|---|
ICommand | A custom command invoked by the predefined Back button. |
Remarks
If you create a multi-screen application with navigation using the NavigationFrame, you can display the predefined Back button in the AppBar by setting the AppBar.IsBackButtonEnabled property to true. By default, this button returns an end-user to the previous page of the application, if possible. You can use a custom command as the Back button’s command. For this purpose, assign a custom command to the BackCommand property. If a command is assigned to the BackCommand property, it is invoked with a click on the Back button.