Skip to main content

AppBar.IsExitButtonEnabled Property

Gets or sets whether the Exit button is displayed in the AppBar.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v24.1.dll

NuGet Package: DevExpress.Wpf.Controls

Declaration

public bool IsExitButtonEnabled { get; set; }

Property Value

Type Description
Boolean

true, if the Exit button is displayed; otherwise, false. The default value is false.

Remarks

When you implement a Windows Store style application, you may wish to display an application window without its border by setting the WindowStyle property to None. When the window is rendered without a border, the common Minimize, Maximize, Restore and Close buttons are not displayed. In this case, you can display the predefined Exit button within the AppBar. If the IsExitButtonEnabled is set to true, the Exit button is displayed on the far right right of the AppBar bar and closes the window by a click.

You can also use a custom command as the Exit button’s command. To do this, use the AppBar.ExitCommand property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsExitButtonEnabled property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also