简体   繁体   English

在WP8.1 Silverlight ApplicationBar中使用字体图标

[英]Using font icons in WP8.1 Silverlight ApplicationBar

I'm trying to figure out why I can't use the glyphicons that are available to WP8 XAML apps in my Silverlight 8.1 Application. 我试图弄清楚为什么不能在Silverlight 8.1应用程序中使用WP8 XAML应用程序可用的字形

As you can see from the fragment below, I have to specify an image to use as the icon compared to the ease of using one of the glyph icons. 从下面的片段中可以看到,与使用一个字形图标相比,我必须指定一个图像作为图标。

<phone:PhoneApplicationPage.ApplicationBar>
    <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
        <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>

Does anyone know how I can simply use the icons without needing to go through the extra work of creating images? 有谁知道我可以简单地使用图标而无需完成创建图像的额外工作?

In WP8.1 Silverlight you need to use an image. 在WP8.1 Silverlight中,您需要使用图像。 The symbol enumeration with those glyphicons are only available for Windows (Phone) Store apps only, see the documentation : 带有这些字形的符号枚举仅适用于Windows(Phone)Store应用程序,请参阅文档

Minimum supported Phone: Windows Phone 8.1 [Windows Runtime apps only] 支持的最低电话: Windows Phone 8.1 [仅Windows运行时应用程序]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM