WPF - How to style the menu control to remove the left margin?
Posted
by BrianLy
on Stack Overflow
See other posts from Stack Overflow
or by BrianLy
Published on 2010-06-05T04:14:46Z
Indexed on
2010/06/05
12:32 UTC
Read the original article
Hit count: 254
I have added a default menu control into my user control. It is being combined with some other controls as part of a custom Window chrome. I need to style the menu to make it appear simpler. The main thing I need to do is to remove the left margin containing the space for the icon or checkbox. How can I do this?
XAML:
<Menu>
<MenuItem Header="MyMeny" FontSize="10">
<MenuItem Header="Options..." />
<MenuItem Header="About" />
</MenuItem>
</Menu>
© Stack Overflow or respective owner