I have added a default menu control to my user control. I need to style the menu to remove the left margin containing the space for the icon or checkbox. How can I do this?
Two options here:
Short, simple and straight forward. Set ItemsPanelTemplate
for MenuItem
or ContextMenu
, depending what kind of menu you are using (see details).
Radical. Rewrite Menu
style from scratch. There are two ready to use styles:
Menu
from MahApps.Metro (ordinary Menu and ContextMenu)