码迷,mamicode.com
首页 > 其他好文 > 详细

SymbolIcon class

时间:2018-01-20 22:45:17      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:instance   initial   stand   pos   appbar   window   dir   style   col   

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

标签:instance   initial   stand   pos   appbar   window   dir   style   col   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!