Back to Devexpress

AppBar.BackCommand Property

wpf-devexpress-dot-xpf-dot-windowsui-dot-appbar-0555e750.md

latest1.9 KB
Original Source

AppBar.BackCommand Property

Gets or sets a custom command invoked by the predefined Back button.

Namespace : DevExpress.Xpf.WindowsUI

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public ICommand BackCommand { get; set; }
vb
Public Property BackCommand As ICommand

Property Value

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

See Also

IsBackButtonEnabled

ExitCommand

IsExitButtonEnabled

AppBar Class

AppBar Members

DevExpress.Xpf.WindowsUI Namespace