This topic has not yet been rated - Rate this topic

AppBar.IsOpen property

Gets or sets a value that indicates whether the AppBar is visible.

Syntax


public bool IsOpen { get; set; }


<AppBar IsOpen="bool"/>

Property value

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

True to display the AppBar and make it visible. False to hide the AppBar.

Remarks

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

Note  Binding to the IsOpen property doesn't have the expected results because the PropertyChanged notification doesn't occur when the property is set.

Examples


<AppBar IsOpen="True">
    <Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Style="{StaticResource PreviousAppBarButtonStyle}" 
                    Click="Button_Click"/>
            <Button Style="{StaticResource NextAppBarButtonStyle}" 
                    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

© 2013 Microsoft. All rights reserved.