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>

  http://social.msdn.microsoft.com/Forums/zh-CN/metroappzhcn/thread/e2a23a8f-9e29-46f7-bc3a-a28558f46a6d/

posted on 2012-08-16 23:09  SUNJUNLIN  阅读(207)  评论(0编辑  收藏  举报

导航