FontIconSource FontIconSource FontIconSource FontIconSource Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents an icon source that uses a glyph from the specified font.

public : class FontIconSource : IconSource, IFontIconSourcepublic class FontIconSource : IconSource, IFontIconSourcePublic Class FontIconSource Inherits IconSource Implements IFontIconSource// You can use this class in JavaScript.
<FontIconSource .../>

Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Inherited Members

Inherited methods

Inherited properties

Constructors

FontIconSource() FontIconSource() FontIconSource() FontIconSource()

Prerelease. Initializes a new instance of the FontIconSource class.

public : FontIconSource()public FontIconSource()Public Sub New()// You can use this method in JavaScript.

Properties

FontFamily FontFamily FontFamily FontFamily

Prerelease. Gets or sets the font used to display the icon glyph.

public : FontFamily FontFamily { get; set; }public FontFamily FontFamily { get; set; }Public ReadWrite Property FontFamily As FontFamily// You can use this property in JavaScript.
<FontIconSource FontFamily="fontFamilyValue"/>

Value
FontFamily FontFamily FontFamily FontFamily

The font used to display the icon glyph.

FontFamilyProperty FontFamilyProperty FontFamilyProperty FontFamilyProperty

Prerelease. Gets the identifier for the FontFamily dependency property.

public : static DependencyProperty FontFamilyProperty { get; }public static DependencyProperty FontFamilyProperty { get; }Public Static ReadOnly Property FontFamilyProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the FontFamily dependency property.

FontSize FontSize FontSize FontSize

Prerelease. Gets or sets the size of the icon glyph.

public : double FontSize { get; set; }public double FontSize { get; set; }Public ReadWrite Property FontSize As double// You can use this property in JavaScript.
<FontIconSource FontSize="double" .../>

Value
double double double double

A non-negative value that specifies the font size, measured in pixels.

Remarks

The unit measure for FontSize is pixels, measuring the line height of the characters in the font. The apparent size of text in the UI can vary based on the current scaling. If you want to use different FontSize values for different scalings, you can do this using the resources system.

FontSizeProperty FontSizeProperty FontSizeProperty FontSizeProperty

Prerelease. Gets the identifier for the FontSize dependency property.

public : static DependencyProperty FontSizeProperty { get; }public static DependencyProperty FontSizeProperty { get; }Public Static ReadOnly Property FontSizeProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the FontSize dependency property.

FontStyle FontStyle FontStyle FontStyle

Prerelease. Gets or sets the font style for the icon glyph.

public : FontStyle FontStyle { get; set; }public FontStyle FontStyle { get; set; }Public ReadWrite Property FontStyle As FontStyle// You can use this property in JavaScript.
<FontIconSource FontStyle="fontStyleMemberName"/>

Value
FontStyle FontStyle FontStyle FontStyle

A named constant of the enumeration that specifies the style in which the icon glyph is rendered. The default is Normal.

FontStyleProperty FontStyleProperty FontStyleProperty FontStyleProperty

Prerelease. Gets the identifier for the FontStyle dependency property.

public : static DependencyProperty FontStyleProperty { get; }public static DependencyProperty FontStyleProperty { get; }Public Static ReadOnly Property FontStyleProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the FontStyle dependency property.

FontWeight FontWeight FontWeight FontWeight

Prerelease. Gets or sets the thickness of the icon glyph.

public : FontWeight FontWeight { get; set; }public FontWeight FontWeight { get; set; }Public ReadWrite Property FontWeight As FontWeight// You can use this property in JavaScript.
<FontIconSource FontWeight="fontWeightsValue"/>

Value
FontWeight FontWeight FontWeight FontWeight

A value that specifies the thickness of the icon glyph. The default is Normal.

FontWeightProperty FontWeightProperty FontWeightProperty FontWeightProperty

Prerelease. Gets the identifier for the FontWeight dependency property.

public : static DependencyProperty FontWeightProperty { get; }public static DependencyProperty FontWeightProperty { get; }Public Static ReadOnly Property FontWeightProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the FontWeight dependency property.

Glyph Glyph Glyph Glyph

Prerelease. Gets or sets the character code that identifies the icon glyph.

public : PlatForm::String Glyph { get; set; }public string Glyph { get; set; }Public ReadWrite Property Glyph As string// You can use this property in JavaScript.
<FontIconSource Glyph="characterCode"/>

Value
PlatForm::String string string string

The hexadecimal character code for the icon glyph.

GlyphProperty GlyphProperty GlyphProperty GlyphProperty

Prerelease. Gets the identifier for the Glyph dependency property.

public : static DependencyProperty GlyphProperty { get; }public static DependencyProperty GlyphProperty { get; }Public Static ReadOnly Property GlyphProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Glyph dependency property.

IsTextScaleFactorEnabled IsTextScaleFactorEnabled IsTextScaleFactorEnabled IsTextScaleFactorEnabled

Prerelease. Gets or sets a value that indicates whether automatic text enlargement, to reflect the system text size setting, is enabled.

public : PlatForm::Boolean IsTextScaleFactorEnabled { get; set; }public bool IsTextScaleFactorEnabled { get; set; }Public ReadWrite Property IsTextScaleFactorEnabled As bool// You can use this property in JavaScript.
<FontIconSource IsTextScaleFactorEnabled="bool"/>

Value
PlatForm::Boolean bool bool bool

true if automatic text enlargement is enabled; otherwise, false.

IsTextScaleFactorEnabledProperty IsTextScaleFactorEnabledProperty IsTextScaleFactorEnabledProperty IsTextScaleFactorEnabledProperty

Prerelease. Gets the identifier for the IsTextScaleFactorEnabled dependency property.

public : static DependencyProperty IsTextScaleFactorEnabledProperty { get; }public static DependencyProperty IsTextScaleFactorEnabledProperty { get; }Public Static ReadOnly Property IsTextScaleFactorEnabledProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the IsTextScaleFactorEnabled dependency property.

MirroredWhenRightToLeft MirroredWhenRightToLeft MirroredWhenRightToLeft MirroredWhenRightToLeft

Prerelease. Gets or sets a value that indicates whether the icon is mirrored when its containing element's FlowDirection is RightToLeft.

public : PlatForm::Boolean MirroredWhenRightToLeft { get; set; }public bool MirroredWhenRightToLeft { get; set; }Public ReadWrite Property MirroredWhenRightToLeft As bool// You can use this property in JavaScript.
<FontIconSource MirroredWhenRightToLeft="bool"/>

Value
PlatForm::Boolean bool bool bool

true if the icon is mirrored when the FlowDirection is FlowDirection.RightToLeft; otherwise, false. The default is false.

Remarks

You can set the MirroredWhenRightToLeft property to have the glyph appear mirrored when its containing element's FlowDirection is RightToLeft. You typically use this property when a FontIcon is used to display an icon as part of a control template and the icon needs to be mirrored along with the rest of the control.

MirroredWhenRightToLeftProperty MirroredWhenRightToLeftProperty MirroredWhenRightToLeftProperty MirroredWhenRightToLeftProperty

Prerelease. Gets the identifier for the MirroredWhenRightToLeft dependency property.

public : static DependencyProperty MirroredWhenRightToLeftProperty { get; }public static DependencyProperty MirroredWhenRightToLeftProperty { get; }Public Static ReadOnly Property MirroredWhenRightToLeftProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the MirroredWhenRightToLeft dependency property.