Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AppBar.IsSticky Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public:
 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

Boolean

bool

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

Remarks

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 after the user interacts with a command in the app bar, clicks the "see more/see less" button again, or you programmatically set the IsOpen property to false.

Applies to

See also


Feedback

Was this page helpful?