FontStyle Property

TextElement.FontStyle Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the font style for the content in this element.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public FontStyle FontStyle { get; set; }
<textElement FontStyle="fontStylesValue"/>

XAML Values


A FontStyles property name, such as Normal or Italic.

Property Value

Type: System.Windows.FontStyle
One of the FontStyles property values, specifying the font style. The default is FontStyles.Normal.

Dependency property identifier field: FontStyleProperty

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2016 Microsoft