Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.67 KB

File metadata and controls

37 lines (25 loc) · 1.67 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Controls.AppBar
winrt class

Microsoft.UI.Xaml.Controls.AppBar

-description

Represents the container control that holds app UI components for commanding and experiences.

-xaml-syntax

<AppBar .../>
-or-
<AppBar>
  content
</AppBar>

-remarks

Important

AppBar is the base class for CommandBar, which provides greater functionality. We recommend using the CommandBar control in your apps instead of AppBar.

You can open and close the app bar programmatically by setting the IsOpen property. You can use the Opening, Opened, Closing, and Closed events to respond to the app bar being opened or closed.

By default, the app bar is dismissed (closed) when the user interacts with the app anywhere outside of the app bar. Closing the app bar this way is called light dismiss. You can control how the app bar is dismissed by setting the IsSticky property. When the app bar is sticky, it's not closed by a light dismiss gesture. The app bar remains visible until the user right clicks or presses the ellipsis [***].

-see-also

Command bar, AppBarButton, CommandBar