Export (0) Print
Expand All

Control.FontFamily Property

Gets or sets the font used to display text in the control.

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

public FontFamily FontFamily { get; set; }
<control FontFamily="fontFamilyValue"/>

XAML Values

fontFamilyValue

A string representation of a FontFamily value, possibly including fallback values or indexes within a font file, or a URI where the font family is packaged. For more information on the syntax, see FontFamily.

Property Value

Type: System.Windows.Media.FontFamily
The font used to display text in the control. The default is the "Portable User Interface".

Dependency property identifier field: FontFamilyProperty

"Portable User Interface" is a composite font that uses a number of fonts to implement the range of international languages supported by Silverlight, including for example "Lucida Sans Unicode" and "Lucida Grande" for many western writing systems, and many more for East Asian writing systems.

Restrictions apply when specifying a font file or a zip file containing font files. See Text and Fonts for details.

Silverlight

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.

Community Additions

ADD
Show:
© 2014 Microsoft