【发布时间】:2018-03-10 21:46:05
【问题描述】:
我试图在我的应用程序中隐藏仅供管理员使用的 BottomAppBar。
我希望 BottomAppBar 在启动后隐藏,并且仅在我右键单击鼠标时才出现。
目前,当我启动应用程序时,应用栏在最小化模式下可见,如下所示:
希望完全隐藏,让用户不知道有设置页面/bottomAppBar。
这是我的代码:
<Page.BottomAppBar>
<AppBar Background="{StaticResource CitiKioskBackgroundBrush}"
IsOpen="False"
IsSticky="False">
<StackPanel Orientation="Horizontal">
<AppBarButton Name="SettingAppBarButton"
Click="SettingAppBarButton_Click"
Icon="Setting"
Label="Settings"
Foreground="White"/>
</StackPanel>
</AppBar>
</Page.BottomAppBar>
【问题讨论】:
-
考虑 Visibility 属性。