Parent & Child menitems - WPF .NET 8.0
I'm struggling with WPF MenuItems. Specifically, I need to open a window when the "File" parent MenuItem is clicked, but not when any of its child MenuItems are clicked. Despite trying several methods, including using tags, combining tags with click events, and relying solely on click events, nothing has worked.
2 Replies
This is done using the backend code, the C# code
Here we have you event, in this case click, it will then check if the clicked item is parent of MenuItem and then it opens your window, whatever it is called
Have already tried, it doesn't work.