FontFamily.XamlAutoFontFamily Property

Definition

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.

LanguageDefault FontFamily
JapaneseYu Gothic UI
KoreanMalgun Gothic
All othersSegoe UI

Applies to