Hi,
I'm trying to convert a style I have for a System.Windows.Controls.MenuItem and there I have a trigger on the Role property of the item.
When trying to copy it to the XamMenuItem I discovered that the Role property on XamMenuItem is protected and therefore I can't use it for triggers...
Any workarounds?
thanks
Hello,
Thank you for your post. I have been looking into it and I created a sample project with the functionality you want. Basically I created a new class that inherits the XamMenuItem and added a Dependency Property, which is set to the XamMenuItem’s Role Property. This way the Role Property is exposed in the new class. Please let me know if you need further clarification on this matter.
Looking forward for your reply.
hmm, thanks.
Ugly but it works :)
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.