Back to Devexpress

AppBar.ExitCommand Property

wpf-devexpress-dot-xpf-dot-windowsui-dot-appbar-765b3358.md

latest1.8 KB
Original Source

AppBar.ExitCommand Property

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

Namespace : DevExpress.Xpf.WindowsUI

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

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

Property Value

TypeDescription
ICommand

A custom command invoked by the predefined Exit button.

|

Remarks

Instead of the standard “x” button (displayed within the window’s title bar) that closes the current window, you can consider displaying a predefined Exit button within the AppBar. Set the AppBar.IsExitButtonEnabled property to true to display this button.

By default, the Exit button closes the window. To perform custom actions instead, assign a command to the Exit button via the ExitCommand property.

See Also

IsExitButtonEnabled

BackCommand

IsBackButtonEnabled

AppBar Class

AppBar Members

DevExpress.Xpf.WindowsUI Namespace