AppBar.IsSticky Property


Gets or sets a value that indicates whether the AppBar does not close on light dismiss.

 property bool IsSticky { bool get(); void set(bool value); };
bool IsSticky();

void IsSticky(bool value);
public bool IsSticky { get; set; }
var boolean = appBar.isSticky;
appBar.isSticky = boolean;
Public Property IsSticky As Boolean
<AppBar IsSticky="bool" .../>

Property Value



true if the AppBar does not close on light dismiss. false if the AppBar is hidden on light dismiss.


<AppBar IsSticky="True">
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
        <Button Style="{StaticResource HelpAppBarButtonStyle}" 


By default, app bars are dismissed when the user interacts with your app anywhere outside of the app bar. This is called light dismiss. To keep commands visible, you can change the dismissal mode by setting the IsSticky property to true. When an app bar is sticky, it's dismissed only when the user right-clicks, presses Windows+Z, or swipes from the top or bottom edge of the screen.

Applies to

See also