FontWeight Property

Control.FontWeight Property

Gets or sets the thickness of the specified font.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public FontWeight FontWeight { get; set; }
<control FontWeight="fontWeightsValue"/>

XAML Values


A FontWeights property name, such as Light, Normal, or UltraBold.

Property Value

Type: System.Windows.FontWeight
One of the values that specifies the thickness of the specified font. The default is FontWeights.Normal.

This property can only select from fonts that already exist in a font family. It does not programmatically create alternative weights, except when a family contains a regular weight and no bold weight. In this case, Silverlight will simulate a bold weight by increasing the width of strokes using a 2D graphic algorithm.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Ajouts de la communauté

Microsoft réalise une enquête en ligne pour recueillir votre opinion sur le site Web de MSDN. Si vous choisissez d’y participer, cette enquête en ligne vous sera présentée lorsque vous quitterez le site Web de MSDN.

Si vous souhaitez y participer,
© 2015 Microsoft