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.
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.
Language | Default FontFamily |
---|---|
Japanese | Yu Gothic UI |
Korean | Malgun Gothic |
All others | Segoe UI |
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro