-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.FontIcon.Glyph |
winrt property |
Gets or sets the character code that identifies the icon glyph.
<FontIcon Glyph="characterCode"/>
- characterCode
- characterCodeThe hexadecimal character code for the icon glyph, such as "ÿ".
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);