How do I right-align the 'help' menu item in WPF?
Posted
by paxdiablo
on Stack Overflow
See other posts from Stack Overflow
or by paxdiablo
Published on 2010-06-11T14:33:12Z
Indexed on
2010/06/11
15:33 UTC
Read the original article
Hit count: 1305
I have the following (simplifed) section in my XAML file:
<Menu Width="Auto" Height="20" Background="#FFA9D1F4" DockPanel.Dock="Top">
<MenuItem Header="File">
<MenuItem Header="Exit"/>
</MenuItem>
<MenuItem Header="Edit">
<MenuItem Header="Cut"/>
</MenuItem>
<MenuItem Header="Help">
<MenuItem Header="About"/>
</MenuItem>
</Menu>
and it results in:
+-------------------------------------------+
| File Edit Help |
+-------------------------------------------+
| |
What do I need to do if I want the Help
menu item on the right-hand side:
+-------------------------------------------+
| File Edit Help |
+-------------------------------------------+
| |
© Stack Overflow or respective owner