<Page.BottomAppBar>
<AppBar>
<AppBar.Resources>
<Style x:Key="MyAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
<Setter Property="AutomationProperties.AutomationId" Value="MyAppBarButton"/>
<Setter Property="AutomationProperties.Name" Value="My Button"/>
<Setter Property="Content" Value="❁"/>
</Style>
</AppBar.Resources>
<StackPanel x:Name="LeftPanel" Orientation="Horizontal" Grid.Column="0" HorizontalAlignment="Left">
<Button x:Name="Edit" Style="{StaticResource MyAppBarButtonStyle}" Tag="MyButton"/>
</StackPanel>
</AppBar>
</Page.BottomAppBar>
http://social.msdn.microsoft.com/Forums/zh-CN/metroappzhcn/thread/e2a23a8f-9e29-46f7-bc3a-a28558f46a6d/
作者:johnny
出处:http://www.cnblogs.com/sunjunlin
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。