【发布时间】:2014-12-13 09:06:20
【问题描述】:
我的 BottomAppBar 之前显示过。我没有更改 XAML,即 MainPage.xaml:
<Page.BottomAppBar>
<AppBar x:Name="bottomAppBar" Padding="10,0,10,0">
<CommandBar>
<CommandBar.SecondaryCommands>
<AppBarButton Icon="BrowsePhotos" Label="Browse" AutomationProperties.Name="Browse Photos" Click="btnOpenImgFiles_Click"/>
</CommandBar.SecondaryCommands>
<CommandBar.PrimaryCommands>
<AppBarButton Icon="OpenFile" Label="Open" AutomationProperties.Name="Open File" Click="btnOpenMap_Click"/>
<AppBarButton Icon="Save" Label="Save" AutomationProperties.Name="Save File" Click="btnSaveMap_Click"/>
</CommandBar.PrimaryCommands>
</CommandBar>
</AppBar>
</Page.BottomAppBar>
在通过 F5 运行我的(目前非常简约的)应用程序时,我可以通过 Windows 键 + Z 显示 BottomAppBar,但它现在是空白的 - 只是一个黑条。会发生什么?
【问题讨论】:
标签: visual-studio-2013 windows-store-apps winrt-xaml appbar