首页 > 其他 > 详细

SymbolIcon class

时间:2018-01-20 22:04:09      阅读:243      评论:0      收藏:0      [点我收藏+]

Remarks

The most common way to specify the icon for an app bar button is to use one of the standard glyphs provided by the Segoe MDL2 Assets font, as specified in the Symbol enumeration. You can use a SymbolIcon by setting the Icon property of an AppBarButton directly to a value of the Symbol enumeration.

 

Examples

This example shows two ways to use a SymbolIcon an AppBarButton. The second button icon has its Foreground set to "Green".

<AppBarButton Icon="Like" Label="Like"/>

 

<AppBarButton Label="Accept">

    <AppBarButton.Icon>

        <SymbolIcon Symbol="Accept" Foreground="Green"/>

    </AppBarButton.Icon>

</AppBarButton>

 

Constructors

SymbolIcon()

Initializes a new instance of the SymbolIcon class.

SymbolIcon(Symbol)

Initializes a new instance of the SymbolIcon class using the specified symbol.

 

来自 <https://docs.microsoft.com/en-us/uwp/api/Windows.UI.Xaml.Controls.SymbolIcon>

 

 

 

 

来自 <https://docs.microsoft.com/en-us/uwp/api/Windows.UI.Xaml.Controls.SymbolIcon>

 

SymbolIcon class

原文:https://www.cnblogs.com/pugongying123/p/8321996.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!