[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides a set of predefined font weights as static property values.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
Thetype exposes the following members.
|Black||Specifies a "Black" font weight.|
|Bold||Specifies a "Bold" font weight.|
|ExtraBlack||Specifies an "ExtraBlack" font weight.|
|ExtraBold||Specifies an "ExtraBold" font weight.|
|ExtraLight||Specifies an "ExtraLight" font weight.|
|Light||Specifies a "Light" font weight.|
|Medium||Specifies a "Medium" font weight.|
|Normal||Specifies a "Normal" font weight.|
|SemiBold||Specifies a "SemiBold" font weight.|
|Thin||Specifies a "Thin" font weight.|
A font weight describes the relative weight of a font, in terms of the lightness or heaviness of the strokes. Weight differences are generally differentiated by an increased stroke or thickness that is associated with a given character in a font, as compared to a "normal" character from that same font.
The values correspond to the usWeightClass definition in the OpenType Specification. The usWeightClass represents an integer value between 1 and 999. Lower values indicate lighter weights; higher values indicate heavier weights.
FontWeights Static Property Names
For more information on XAML usage, see FontWeight. FontWeight is the value type for Windows Phone properties or attributes that specify a font weight value, but you must use static properties of to provide a FontWeight value. In XAML, you specify the name of a property as the attribute value. This functionality is enabled by native XAML parsing behavior that processes the string value.