Skip to main content

AppBar.HideMode Property

Gets or sets the dismissal mode that specifies whether, and if so how, the AppBar closes. This is a dependency property.

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Package: DevExpress.Wpf.Controls

Declaration

public AppBarHideMode HideMode { get; set; }

Property Value

Type Description
DevExpress.Xpf.WindowsUI.AppBarHideMode

An DevExpress.Xpf.WindowsUI.AppBarHideMode enumeration value that specifies whether, and if so how, the AppBar closes.

Remarks

The app bar can be visible or hidden in the application window. An end-user can open the app bar by right clicking the mouse in the application’s client area. In code, app bar visibility can be specified by the AppBar.IsOpen property. By default, the opened app bar automatically disappears from view when an end-user interacts with the application anywhere outside the app bar. This behavior is called light dismiss. You can change the dismissal mode with the HideMode property. The AppBarHideMode enumeration provides the following values:

  • Default — The default behavior. The app bar closes on light dismiss.
  • Sticky — The app bar is stuck to the window and disappears only when an end-user explicitly closes it with a right click or with the Escape key. In code, the app bar can be closed by setting the AppBar.IsOpen property to false.
  • AlwaysVisible — The app bar does not close on light dismiss and cannot be explicitly closed by an end-user or in code. The AppBar.IsOpen property cannot be set to false in this mode.
  • Manual — The only way to modify the app bar visibility is to modify the AppBar.IsOpen property value in code.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HideMode 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