Windows 应用商店应用:更改 AppBar 按钮的图标? [英] Windows Store Apps: Change the icon of an AppBar Button?

查看:26
本文介绍了Windows 应用商店应用:更改 AppBar 按钮的图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改我的 Windows 应用商店应用中 AppBar 按钮的图标.

I want to change the icon of an AppBar Button in my Windows Store app.

我发现 AppBar 按钮具有如下所示的 XAML 标记:

I found that the AppBar buttons have XAML markup that looks like this:

<Style x:Key="PicturesAppBarButtonStyle"
       TargetType="ButtonBase" 
       BasedOn="{StaticResource AppBarButtonStyle}">
    <Setter Property="AutomationProperties.AutomationId"
            Value="PicturesAppBarButton"/>
    <Setter Property="AutomationProperties.Name" 
            Value="Pictures"/>
    <Setter Property="Content" Value="&#xE158;"/>
</Style> 

内容值 &#xE158; 是什么意思?是否有任何内置图标的参考?

What does the content value &#xE158; mean? Is there any refernece to the built-in icons ?

另外,我怎样才能显示我自己的不同图标?

Also how can I display a different icon of my own ?

推荐答案

Content 是所用字体Segoe UI Symbol"的 Unicode 字符编号.

The Content is the Unicode character number for the used font "Segoe UI Symbol" .

查看符号列表按钮符号列表

这篇关于Windows 应用商店应用:更改 AppBar 按钮的图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆