Full Symbol enum to use in Glyph="..." #670
WelterDevelopment
started this conversation in
Proposals
Replies: 3 comments
-
@WelterDevelopment how is the Generally, I use the Character Map UWP app (also an open-source project on GitHub) to look up symbols and copy the glyph code copy (and a button for XAML). |
Beta Was this translation helpful? Give feedback.
0 replies
-
I use the WinUI3 Gallery > Design Guidance > Iconography to get my icons |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
The FontIconExtension solves only one part of the problem for me. The bigger part is the necessity of finding and typing weird xaml-friendly Glyph strings like

instead of using an enum with an IntelliSense list popping up while typing, analogous to Icon="...".Proposal
Of course the real solution would be to extend the Microsoft.UI.Xaml.Controls.Symbol enum to include all 1435 Symbols (according to IconFont2Code) from the Segoe Fluent Icons font... Until this happens, extending the FontIconExtension functionality of the CommunityToolkit would be a good workaround.
I propose a new MarkupExtension in the CommunityToolkit.WinUI namespace:
With a new enum containing all possible icons:
Usage
Then you could use it in xaml:
Result
Proof of concept (IntelliSense works!):

Beta Was this translation helpful? Give feedback.
All reactions