WPF: stopping ContextMenu from closing

The context menu automatically closes when the user clicks on it. Is there any way to stop it from closing? I tried to set the property StaysOpento true, but could not get the desired result.

Thanks for any help!

+3
source share
2 answers

It's not clear what you are trying to achieve, maybe you should use Popup so you can close it whenever you want.

+2
source

Source: https://habr.com/ru/post/1736617/


All Articles