隐藏 Windows Phone 8.1 命令栏
Hide Windows Phone 8.1 CommandBar
我正在开发一个 Windows Phone 应用程序,我遇到了一个 "issue"。我的视图上有一个 BottomAppBar
控件,命令栏内有一些 AppBarButton
控件。我想 "hide" BottomAppBar
只显示右侧的三个点,用户必须向上滑动 BottomAppBar
控件才能看到它的内容。
我尝试过:
- 将 CommandBar 的
IsOpen
属性 设置为 False - 无效
- 将所有
AppBarButton
控件的可见性设置为 Collapsed
- 仅显示空的 BottomAppBar
我不太擅长解释自己,因此我会在我的 phone 上添加一些来自其他应用程序的图片,只是为了准确显示我想要获得的内容:
可以设置ClosedDisplayMode=Minimal
<Page.BottomAppBar>
<CommandBar ClosedDisplayMode="Minimal">
<CommandBar.SecondaryCommands>
<AppBarButton IsCompact="True" Label="About"/>
</CommandBar.SecondaryCommands>
</CommandBar>
</Page.BottomAppBar>
我正在开发一个 Windows Phone 应用程序,我遇到了一个 "issue"。我的视图上有一个 BottomAppBar
控件,命令栏内有一些 AppBarButton
控件。我想 "hide" BottomAppBar
只显示右侧的三个点,用户必须向上滑动 BottomAppBar
控件才能看到它的内容。
我尝试过:
- 将 CommandBar 的
IsOpen
属性 设置为 False - 无效 - 将所有
AppBarButton
控件的可见性设置为Collapsed
- 仅显示空的 BottomAppBar
我不太擅长解释自己,因此我会在我的 phone 上添加一些来自其他应用程序的图片,只是为了准确显示我想要获得的内容:
可以设置ClosedDisplayMode=Minimal
<Page.BottomAppBar>
<CommandBar ClosedDisplayMode="Minimal">
<CommandBar.SecondaryCommands>
<AppBarButton IsCompact="True" Label="About"/>
</CommandBar.SecondaryCommands>
</CommandBar>
</Page.BottomAppBar>