FontFamily.XamlAutoFontFamily Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the default font family based on an app's language settings.
static FontFamily XamlAutoFontFamily();
public static FontFamily XamlAutoFontFamily { get; }
var fontFamily = FontFamily.xamlAutoFontFamily;
Public Shared ReadOnly Property XamlAutoFontFamily As FontFamily
Property Value
The default font family based on an app's language settings. See Remarks.
Examples
<TextBlock FontFamily="XamlAutoFontFamily"/>
TextBlock textBlock1 = new TextBlock();
textBlock1.FontFamily = FontFamily.XamlAutoFontFamily;
Remarks
XamlAutoFontFamily is the default FontFamily property setting for all XAML controls. The FontFamily that this property gets at run time depends on the app language.
Language | Default FontFamily |
---|---|
Japanese | Yu Gothic UI |
Korean | Malgun Gothic |
All others | Segoe UI |