Windows 8 Metro 应用开发App Bar问题
<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>
作者:johnny
出处:http://www.cnblogs.com/sunjunlin
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。