FontStyle Structure
Collapse the table of content
Expand the table of content

FontStyle Structure

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

Represents the style of a font face (for instance, as normal or italic).

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

public struct FontStyle
<object property="fontStylesPropertyName"/>

XAML Values


A static FontStyles property name, such as Normal or Italic.

The FontStyle type exposes the following members.

Public methodEqualsCompares an object with the current FontStyle instance for equality. (Overrides ValueType.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeRetrieves the hash code for this object. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringCreates a string that represents the current FontStyle object. (Overrides ValueType.ToString().)

Public operatorStatic memberEqualityCompares two instances of FontStyle for equality.
Public operatorStatic memberInequalityEvaluates two instances of FontStyle to determine inequality.

FontStyle is the value type for Windows Phone properties or attributes that specify a font style value, but you must use static properties of FontStyles to provide a FontStyle value. In XAML, you specify the name of a FontStyles property as the attribute value. This functionality is enabled by native XAML parsing behavior that processes the string value.

FontStyles Static Property Names

Font style



The characters in an italic font are truly slanted and appear as they were designed.


The characters in a normal, or roman, font are upright.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

© 2018 Microsoft