How can I modify my Menu so that it shows the color all the way through and not like this:
Here is my code:
<DockPanel>
<Menu DockPanel.Dock="Right"
Height="30"
VerticalAlignment="Top"
Background="#2E404B"
BorderThickness="2.6"
Foreground="#FFAA00">
<Menu.BitmapEffect>
<DropShadowBitmapEffect Direction="270" ShadowDepth="3" Color="#2B3841"/>
</Menu.BitmapEffect>
<MenuItem Header="File" >
<MenuItem Header="New Build" Background="#2E404B"></MenuItem>
<Separator />
<MenuItem Header="Exit" Background="#2E404B"></MenuItem>
</MenuItem>
<MenuItem Header="Edit" >
<MenuItem Header="Language" Background="#2E404B"></MenuItem>
<MenuItem Header="Display Mode" Background="#2E404B"></MenuItem>
<Separator />
<MenuItem Header="Settings" Background="#2E404B"></MenuItem>
</MenuItem>
<MenuItem Header="View" >
</MenuItem>
<MenuItem Header="About" >
</MenuItem>
</Menu>
</DockPanel>
Also, I realize I m setting the color in all instances of the MenuItem, if someone could show me a more efficient way of doing that, that would be awesome as well. :D