FontIcon.Glyph Свойство

Определение

Возвращает или задает код символа, идентифицирующий глиф значка.

public:
 property Platform::String ^ Glyph { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Glyph();

void Glyph(winrt::hstring value);
public string Glyph { get; set; }
var string = fontIcon.glyph;
fontIcon.glyph = string;
Public Property Glyph As String
<FontIcon Glyph="characterCode"/>

Значение свойства

String

Platform::String

winrt::hstring

Шестнадцатеричный код символа для глифа значка.

Примеры

var newAppBarButton = new AppBarButton();
var fontIcon = new FontIcon();
fontIcon.FontFamily = new FontFamily("Segoe MDL2 Assets");
fontIcon.Glyph = "\xE790";
newAppBarButton.Icon = fontIcon;
using namespace winrt::Windows::UI::Xaml;
...

auto newAppBarButton = Controls::AppBarButton{};
auto fontIcon = Controls::FontIcon{};
fontIcon.FontFamily(Media::FontFamily{ L"Segoe MDL2 Assets" });
fontIcon.Glyph(L"\xE790");
newAppBarButton.Icon(fontIcon);

Применяется к