Class FontIcon
Represents an icon that uses a glyph from the specified font.
public class FontIcon : IconElement, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
- Inheritance
-
FontIcon
- Implements
- Derived
- Inherited Members
Fields
FontFamilyProperty
Identifies the FontFamily dependency property.
public static readonly DependencyProperty FontFamilyProperty
Field Value
FontSizeProperty
Identifies the FontSize dependency property.
public static readonly DependencyProperty FontSizeProperty
Field Value
FontStyleProperty
Identifies the FontStyle dependency property.
public static readonly DependencyProperty FontStyleProperty
Field Value
FontWeightProperty
Identifies the FontWeight dependency property.
public static readonly DependencyProperty FontWeightProperty
Field Value
GlyphProperty
Identifies the Glyph dependency property.
public static readonly DependencyProperty GlyphProperty
Field Value
Properties
FontFamily
Gets or sets the font family of the control.
[Bindable(true)]
[Localizability(LocalizationCategory.Font)]
public FontFamily FontFamily { get; set; }
Property Value
- FontFamily
A font family. The default is the system dialog font.
FontSize
Gets or sets the font size.
[TypeConverter(typeof(FontSizeConverter))]
[Bindable(true)]
[Localizability(LocalizationCategory.None)]
public double FontSize { get; set; }
Property Value
- double
The size of the text in the Control. The default is MessageFontSize. The font size must be a positive number.
FontStyle
Gets or sets the font style.
[Bindable(true)]
public FontStyle FontStyle { get; set; }
Property Value
FontWeight
Gets or sets the weight or thickness of the specified font.
[Bindable(true)]
public FontWeight FontWeight { get; set; }
Property Value
- FontWeight
A FontWeight value. The default is Normal.
Glyph
Gets or sets the character code that identifies the icon glyph.
public string Glyph { get; set; }
Property Value
- string
The hexadecimal character code for the icon glyph.
TextBlock
protected TextBlock? TextBlock { get; set; }
Property Value
Methods
InitializeChildren()
protected override UIElement InitializeChildren()