Community.Toolbox and IconPack in Code Behind #346
Answered
by
Petronius-ch
Petronius-ch
asked this question in
Q&A
-
Hi, I'm using Community.Toolbox with target framework net.8.0 on windows 10. Installed Nugets are these:
What I want is, to use an IconPack Icon in the HamburgerMenu, defined in ShellViewModel.cs.:
It compiles, but on the hamburgermenu I see the Glyph ok, but not the icon - there is the classname only (as text). Any idea, whats wrong here...? |
Beta Was this translation helpful? Give feedback.
Answered by
Petronius-ch
Oct 17, 2024
Replies: 1 comment 1 reply
-
check your ItemTemplate |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for answering (sorry for being a bit late...) - I got the idea. It works now :-)
First, in the ShellViewModel.cs I added this to MenuItems:
Next I had to add a new TemplateSelector in the Class MenuItemTemplateSelector (which is missing):