Share via


FontIconSource.FontStyle Property

Definition

Gets or sets the font style for the icon glyph.

This documentation applies to WinUI 2 for UWP (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);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")]
FontStyle FontStyle();

void FontStyle(FontStyle value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
FontStyle FontStyle();

void FontStyle(FontStyle value);
public FontStyle FontStyle { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")]
public FontStyle FontStyle { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public FontStyle FontStyle { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontStyle::Normal")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
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.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Applies to