FontIcon.Glyph Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The hexadecimal character code for the icon glyph.
Examples
<FontIcon FontFamily="Segoe UI Emoji" Glyph="▶"/>
var fontIcon = new FontIcon();
fontIcon.FontFamily = new FontFamily("Segoe UI Emoji");
fontIcon.Glyph = "\x25B6";
using namespace winrt::Windows::UI::Xaml;
...
auto fontIcon = Controls::FontIcon{};
fontIcon.FontFamily(Media::FontFamily{ L"Segoe UI Emoji" });
fontIcon.Glyph(L"\x25B6");