FontFamily Property

TextElement.FontFamily Property

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

Gets or sets the preferred top-level font family for the content of the element.

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

public FontFamily FontFamily { get; set; }
<textElement FontFamily="fontFamily" />
<textElement FontFamily="fontFamilyName[,fallbackFontFamilyName]" />
<textElement FontFamily="fontURI#fontFamily" />

XAML Values


A single font family name, for example "Verdana".


A primary font family choice then one or more fallback font family choices, for example "Arial Unicode MS, Arial". See Remarks.


Used for non-default fonts. Specifies the resource location in the assembly for a font file, and a font family within that font. For information on this usage, see FontFamily.

Property Value

Type: System.Windows.Media.FontFamily
The preferred font family, or a primary preferred font family with one or more fallback font families. See FontFamily for default information.

Dependency property identifier field: FontFamilyProperty

A font family is a set of typefaces that share the same family name, such as "Times New Roman", but that differ in features. These font family feature differences include font style, such as italic, and font weight, such as bold. For more information, including information on the XAML usage, see FontFamily. Restrictions apply when specifying a font file or a zip file containing font files. See Text and fonts for Windows Phone for details.


As with most types of software, font files are licensed, rather than sold, and licenses that govern the use of fonts vary from vendor to vendor. As a developer it is your responsibility to ensure that you have the required license rights for any font you embed within a document or application, or otherwise redistribute.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2017 Microsoft