Hello to all. I put a stackpanel in a menutool, but when I press it, the stackpanel closes, is there a way to not close the menutool and stackpanel when I press the stackpanel or something inside when I click it? thank you
Hello Flavio,
In order to prevent the MenuTool from closing when clicking the StackPanel inside, I would recommend hooking into the PreviewMouseUp event of your StackPanel and marking it handled by setting the e.Handled property to true, where "e" is the event arguments of the PreviewMouseUp event. This will prevent the normal MouseUp event from bubbling up to the menu item that will normally close the MenuTool.
I have attached a sample project to demonstrate the above.
Please let me know if you have any other questions or concerns on this matter.
XamRibbonMenuToolNoClose.zip
it does not work :( I saw that there is xammenu, with that I succeed?