Set command icon at runtime #272
-
Is there a way to set the icon on a OleMenuCommand at runtime? I know I can define two separate commands and set their visibilities but in my case the icon is not even known at compile time. I would for example be reading it from disk or a windows API. I want to create a command to launch an external app but I don't know what app it is until at runtime. Is there perhaps a way to access the underlying WPF UI element by somehow traversing the visual tree and set the icon directly that way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You cannot set the icon dynamically. It's a known limitation and the extensibility team is looking at improving that for a (far-)future update. |
Beta Was this translation helpful? Give feedback.
You cannot set the icon dynamically. It's a known limitation and the extensibility team is looking at improving that for a (far-)future update.