FontFamily.Source Property

Gets the font family name that is used to construct the FontFamily object.

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

Public ReadOnly Property Source As String

Property Value

Type: System.String
The font family name of the FontFamily object.

The default value for a referenced FontFamily is initialized with the value Portable User Interface. This value is an alias. For information about the Portable User Interface concept, and information about which font families are considered default system fonts for Silverlight for either Western or East Asian character sets, see Text and Fonts.

The Source value for a FontFamily value on an in-use text object will return the Portable User Interface value for cases where a FontFamily was not explicitly provided.

Otherwise, Source returns the names of the font family or families corresponding to how the FontFamily was constructed, or how the FontFamily was set as a XAML attribute.


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