Поделиться через


Control.FontFamily Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Property FontFamily As FontFamily
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".

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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