Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.05 KB

fonticon_glyph.md

File metadata and controls

52 lines (38 loc) · 1.05 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.FontIcon.Glyph
winrt property

Windows.UI.Xaml.Controls.FontIcon.Glyph

-description

Gets or sets the character code that identifies the icon glyph.

-xaml-syntax

<FontIcon Glyph="characterCode"/>

-xaml-values

characterCode
characterCodeThe hexadecimal character code for the icon glyph, such as "&#x00FF;".
## -property-value The hexadecimal character code for the icon glyph.

-remarks

-examples

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);

-see-also