Share via


FontIconSource.FontStyle Property

Definition

Gets or sets the font style for the icon glyph.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.FontIconSource.FontStyle (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property FontStyle FontStyle { FontStyle get(); void set(FontStyle value); };
FontStyle FontStyle();

void FontStyle(FontStyle value);
public FontStyle FontStyle { get; set; }
var fontStyle = fontIconSource.fontStyle;
fontIconSource.fontStyle = fontStyle;
Public Property FontStyle As FontStyle
<FontIconSource FontStyle="fontStyleMemberName"/>

Property Value

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

Applies to