Dynamically update ContextFlyout TrayMenu with icons #222
Unanswered
gondwanasoft
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to build a WinUI NotifyIcon's context menu in code when my app runs — and I'd like for the menu to be able to display icons.
If I use the default ContextMenuMode, I can build the menu but I can't display icons (a Win32 limitation?).
If I use ContextMenuMode="SecondWindow", I can probably display icons (untested) but I don't seem to be able to access the menu to change it in code. I assume that I need to access the SecondWindow's menu, but I don't know how to do that. It might even be private.
If anyone knows how to dynamically populate a context menu with icons, please advise!
Beta Was this translation helpful? Give feedback.
All reactions