FontIconSource.FontWeight Property

Definition

Gets or sets the thickness of the icon glyph.

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

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

void FontWeight(FontWeight value);
public FontWeight FontWeight { get; set; }
var fontWeight = fontIconSource.fontWeight;
fontIconSource.fontWeight = fontWeight;
Public Property FontWeight As FontWeight
<FontIconSource FontWeight="fontWeightsValue"/>

Property Value

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

Applies to