Skip to main content
A newer version of this page is available. .

AppBar.BackCommand Property

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

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Controls, DevExpress.Wpf.Navigation

Declaration

public ICommand BackCommand { get; set; }

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.

See Also