FontFamily.XamlAutoFontFamily FontFamily.XamlAutoFontFamily FontFamily.XamlAutoFontFamily FontFamily.XamlAutoFontFamily Property

Definition

Gets the default font family based on an app's language settings.

public : static FontFamily XamlAutoFontFamily { get; }
static FontFamily XamlAutoFontFamily();
public static FontFamily XamlAutoFontFamily { get; }
Public Shared ReadOnly Property XamlAutoFontFamily As FontFamily

Property Value

The default font family based on an app's language settings. See Remarks.

Additional features and requirements

Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

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.

LanguageDefault FontFamily
JapaneseYu Gothic UI
KoreanMalgun Gothic
All othersSegoe UI