AppBar.IsSticky property

This topic has not yet been rated - Rate this topic

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

Syntax


public bool IsSticky { get; set; }


<AppBar IsSticky="bool" .../>

Property value

Type: System.Boolean [.NET] | Platform::Boolean [C++]

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 when the user right-clicks, presses Windows+Z, or swipes from the top or bottom edge of the screen.

Examples


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


Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

AppBar
Quickstart: Adding app bars

 

 

Build date: 3/12/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.