在 windows 8 下打开字符映射表

 

 

    在写 windows 8 应用程序时,在给 appbar 中的按钮选择图案时,可以直接在样式中设置系统代码,例如:

 <Page.Resources>
        <Style x:Key="FilterAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
            <Setter Property="AutomationProperties.AutomationId" Value="FilterAppBarButton"/>
            <Setter Property="AutomationProperties.Name" Value="Filter"/>
            <Setter Property="Content" Value="&#xE16E;"/>
        </Style>
    </Page.Resources>
<Page.BottomAppBar>
            <AppBar x:Name="BottomAppBar" Padding="10,0,10,0" Visibility="Visible" IsSticky="True" IsOpen="True">
                <Grid>
                    <StackPanel x:Name="RightPanel" Orientation="Horizontal" Grid.Column="0" HorizontalAlignment="Right">
                        <Button Style="{StaticResource FilterAppBarButtonStyle}" Tag="Filter" Click="ShowFlyoutMenu" />
                    </StackPanel>
                </Grid>
            </AppBar>
        </Page.BottomAppBar>

 

    资源样式:    <Setter Property="Content" Value="&#xE16E;"/>  中的 Value 值,即代表系统内置的符号,显示为:

 

 

  获得该符号的字符串步骤:

   1、打开运行对话框,输入  charmap  , 即打开 字符集:

   

 

posted @ 2012-09-11 12:54  博琼  阅读(798)  评论(0编辑  收藏  举报