Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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