Jaa


FontIcon.Glyph Property

Definition

Gets or sets the character code that identifies the icon 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"/>

Property Value

String

Platform::String

winrt::hstring

The hexadecimal character code for the icon glyph.

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

Applies to