Dela via


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.

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

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