I'd like to create a latching effect on a radial menus buttons. For example the user clicks on a radial menu item (button), the buttons style should visually remains in the "depressed/mouse-click-down" state until the user clicks the menu item again, ideally I'd also like to change the image that is associated with the button while in "depressed/latched" state as well. Can I do this with a style trigger and maybe a converter that toggles states between something like "latched"(true/false) if so any pointers on where to look.
I had another question related to the Radial Menu Button. Is there a way to "disable/enable" the menu close (or center button), like the true/false that's available as "IsEnabled" on the MenuItems? I'd like to disable closing that menu until a certain sequence has occurred.
Thank you Andrew that was very helpful.
Hello Brian,
I have been investigating the behavior you have described, and there are properties on the RadialMenuItem elements that I believe can help you to achieve this. Specifically, the InnerAreaFill, InnerAreaStroke, and InnerAreaStrokeThickness properties combined with the Click event should allow you to at least color the RadialMenuItem to create a “toggled” or “latched” effect on them.
Perhaps something you could also do in this case is to create a class based on RadialMenuItem that implements an “IsLatched” property that would be toggled on click, and then you could have a Style where you have a trigger for that custom class that changes the properties mentioned above if IsLatched = true.
I am attaching a sample project that demonstrates the custom derived RadialMenuItem described above.
Please let me know if you have any other questions or concerns on this matter.
XamRadialMenuLatchedButtonDemo.zip