Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Latching a Radial Menu Button (WPF/XAML)
posted

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.

Parents
  • 35130
    Offline posted

    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

Reply Children
No Data