Gets or sets the preferred top-level font family for the content in this element.
| XAML | <object FontFamily="fontFamily" .../> |
| Scripting | value = object.FontFamily object.FontFamily = value |
Property Value
string
A FontFamily object specifying the preferred font family, or a primary preferred font family with one or more fallback font families.
This property is read/write. The default value is "Portable User Interface", which is used as an alias for the font family value of "Lucida Sans Unicode, Lucida Grande".
fontFamily Grammar
fontFamilyName[,fallbackFontFamilyName]*
| fontFamilyName | A string that names the primary font. |
| fallbackFontFamilyName | A string that names the fallback font. More than one fallback can be specified. Commas separate each font family string (commas are never part of the font family name itself). |
Fonts that are available or packaged with Silverlight 1.0
- Arial
- Arial Black
- Comic Sans MS
- Courier New
- Lucida Grande
- Lucida Sans Unicode
- Times New Roman
- Trebuchet MS
- Verdana
Lucida Grande and Lucida Sans Unicode are aliases for the same font.
Applies To
LineBreak,
Run,
TextBlock
See Also
Text and Fonts Overview
FontSize
FontStretch
FontStyle
FontWeight