I have been struggling with the WPF Menu
and I simply cannot achieve what I want to.
I tried changing default styling on the Menu
and MenuItem
control, but this turned out terrible. I then tried styling it by making use of control templates, however, I think I came to realization that my WPF skill just aren't there yet.
Here is a picture of my desired result:
Is there anyone that can maybe point me in the right direction? Or maybe assist me with some xaml that will give my desired result?
You can set
ItemsPanel
with horizontal orientation, like this:Because both
Menu
andMenuItem
are derived from ItemsControl.Full example:
Output