FontIconSource.FontFamily Eigenschaft

Definition

Ruft die Schriftart ab, die zum Anzeigen der Symbolglyphe verwendet wird, oder legt sie fest.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe Windows App SDK Namespaces).

FontFamily FontFamily();

void FontFamily(FontFamily value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ c_fontIconSourceDefaultFontFamily }")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ c_fontIconSourceDefaultFontFamily }")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ c_fontIconSourceDefaultFontFamily }")]
FontFamily FontFamily();

void FontFamily(FontFamily value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")]
FontFamily FontFamily();

void FontFamily(FontFamily value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
FontFamily FontFamily();

void FontFamily(FontFamily value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
FontFamily FontFamily();

void FontFamily(FontFamily value);
public FontFamily FontFamily { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ c_fontIconSourceDefaultFontFamily }")]
public FontFamily FontFamily { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ c_fontIconSourceDefaultFontFamily }")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ c_fontIconSourceDefaultFontFamily }")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")]
public FontFamily FontFamily { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public FontFamily FontFamily { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::FontFamily{ c_fontIconSourceDefaultFontFamily }")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public FontFamily FontFamily { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
Public Property FontFamily As FontFamily
<FontIconSource FontFamily="fontFamilyValue"/>

Eigenschaftswert

Die Schriftart, die zum Anzeigen der Symbolglyphe verwendet wird. Der Standardwert ist die Durch die SymbolThemeFontFamily Designressource definierte Schriftartfamilie (siehe Hinweise).

Attribute
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Beispiele

<FontIcon FontFamily="Segoe UI Emoji" Glyph="&#x25B6;"/>

Hinweise

Wenn Sie kein , oder sie angeben, dass das FontFamily System zur Laufzeit nicht FontFamilyverfügbar ist, fällt die FontIcon Standardschriftfamilie zurück, die von der SymbolThemeFontFamily Designressource definiert wird.

Standardmäßig verwendet Windows die Schriftartfamilie "Segoe Fluent Icon ". Wenn Ihre App auf Windows 10, Version 20H2 oder früher ausgeführt wird, ist die Schriftartfamilie Segoe Fluent Icon nicht verfügbar, und die SymbolThemeFontFamily Ressource fällt stattdessen auf die Schriftartfamilie Segoe MDL2 Asset zurück.

Um Glyphen aus der Standardsystemschriftart zu verwenden, legen Sie die FontFamily Eigenschaft nicht fest, lassen Sie sie stattdessen den Standardwert verwenden.

Gilt für: