SymbolIcon
SymbolIcon
SymbolIcon
SymbolIcon
Class
Definition
Represents an icon that uses a glyph from the Segoe MDL2 Assets font as its content.
public : sealed class SymbolIcon : IconElement, ISymbolIconpublic sealed class SymbolIcon : IconElement, ISymbolIconPublic NotInheritable Class SymbolIcon Inherits IconElement Implements ISymbolIcon// This API is not available in Javascript.
<SymbolIcon .../>
- Inheritance
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited properties
Inherited events
Inherited methods
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>
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.
Note
You can set the Foreground property on the AppBarButton or on the SymbolIcon. If you set the Foreground on the AppBarButton, it's applied only to the default visual state. It's not applied to the other visual states defined in the AppBarButton template, like MouseOver. If you set the Foreground on the SymbolIcon, the color is applied to all visual states.
Windows 8/8.1 On Windows 8, the standard glyphs are provided by the Segoe UI Symbol font.
Constructors
SymbolIcon() SymbolIcon() SymbolIcon() SymbolIcon()
Initializes a new instance of the SymbolIcon class.
public : SymbolIcon()public SymbolIcon()Public Sub New()// This API is not available in Javascript.
- See Also
SymbolIcon(Symbol) SymbolIcon(Symbol) SymbolIcon(Symbol) SymbolIcon(Symbol)
Initializes a new instance of the SymbolIcon class using the specified symbol.
public : SymbolIcon(Symbol symbol)public SymbolIcon(Symbol symbol)Public Sub New(symbol As Symbol)// This API is not available in Javascript.
A named constant of the enumeration that specifies the Segoe MDL2 Assets glyph to use. The default is null.
Remarks
Windows 8/8.1 On Windows 8, the standard glyphs are provided by the Segoe UI Symbol font.
Properties
Symbol Symbol Symbol Symbol
Gets or sets the Segoe MDL2 Assets glyph used as the icon content.
public : Symbol Symbol { get; set; }public Symbol Symbol { get; set; }Public ReadWrite Property Symbol As Symbol// This API is not available in Javascript.
<SymbolIcon Symbol="symbolName"/>
A named constant of the numeration that specifies the Segoe MDL2 Assets glyph to use.
Examples
<AppBarButton Label="Accept">
<AppBarButton.Icon>
<SymbolIcon Symbol="Accept"/>
</AppBarButton.Icon>
</AppBarButton>
Remarks
Windows 8/8.1 On Windows 8, the standard glyphs are provided by the Segoe UI Symbol font.
SymbolProperty SymbolProperty SymbolProperty SymbolProperty
Identifies the Symbol dependency property.
public : static DependencyProperty SymbolProperty { get; }public static DependencyProperty SymbolProperty { get; }Public Static ReadOnly Property SymbolProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the Symbol dependency property.