title: WPF MenuItem Vertical Alignment
body: <p>My questions are:</p>
  
  <ol>
  <li>How can I make the menu icons larger than normal for the visually impaired?</li>
  <li>How can I vertically align the text within the menu bar?</li>
  </ol>
  
  <p>Below is the code I've used so far, but I can't make it to work (larger images/fonts) and vertical alignment.</p>
  
  <pre><code>&lt;Menu IsMainMenu="True" Height="48" x:Name="menuMain" Margin="10,10,10,0" VerticalAlignment="Top" BorderThickness="2" Foreground="White" FontSize="16" FontWeight="Bold" &gt;
      &lt;Menu.Resources&gt;
          &lt;Style TargetType="Image"&gt;
              &lt;Setter Property="Height" Value="20" /&gt;
              &lt;Setter Property="Width" Value="20" /&gt;
          &lt;/Style&gt;
      &lt;/Menu.Resources&gt;
  
      &lt;Menu.Background&gt;
          &lt;LinearGradientBrush EndPoint="0,1" StartPoint="0,0"&gt;
              &lt;GradientStop Color="#FF3A60AD" Offset="0.528"/&gt;
              &lt;GradientStop Color="#FF6A85D8" Offset="0.01"/&gt;
              &lt;GradientStop Color="#FF3464C4" Offset="1"/&gt;
              &lt;GradientStop Color="#FF202E7E" Offset="1"/&gt;
          &lt;/LinearGradientBrush&gt;
      &lt;/Menu.Background&gt;
  
      &lt;Menu.BitmapEffect&gt;
          &lt;DropShadowBitmapEffect /&gt;
      &lt;/Menu.BitmapEffect&gt;
  
      &lt;MenuItem x:Name="Exit" Header="Exit" FontWeight="Bold" Foreground="White" FontSize="16" Click="Exit_Click" HorizontalContentAlignment="Center" ToolTip="Exit Bug Off"&gt;
          &lt;MenuItem.Icon&gt;
              &lt;Image Source="C:\Dropbox\Development\BugOff\BugOff\Resources\exit48.png" Width="20" Height="20" /&gt;
          &lt;/MenuItem.Icon&gt;
      &lt;/MenuItem&gt;
  
      &lt;MenuItem x:Name="Tracker" Header="_Tracker" FontWeight="Bold" Foreground="Orange" FontSize="16" Click="Tracker_Click" HorizontalContentAlignment="Center" ToolTip="Tracker"&gt;
          &lt;MenuItem.Icon&gt;
              &lt;Image Source="C:\Dropbox\Development\BugOff\BugOff\Resources\tracker48.png" Width="20" Height="20" /&gt;
          &lt;/MenuItem.Icon&gt;
  
          &lt;MenuItem Command="New" /&gt;
          &lt;MenuItem Command="Search" /&gt;
      &lt;/MenuItem&gt;
  
      &lt;MenuItem x:Name="WIR" Header="_WIR" FontWeight="Bold" Foreground="LightGreen" FontSize="16" Click="WIR_Click" HorizontalContentAlignment="Center" ToolTip="WIR"&gt;
          &lt;MenuItem.Icon&gt;
              &lt;Image Source="C:\Dropbox\Development\BugOff\BugOff\Resources\wir48.png" Width="20" Height="20" /&gt;
          &lt;/MenuItem.Icon&gt;
      &lt;/MenuItem&gt;
  
      &lt;MenuItem x:Name="Report" Header="_Report" FontWeight="Bold" Foreground="Pink" FontSize="16" Click="Report_Click" HorizontalContentAlignment="Center" ToolTip="Report"&gt;
          &lt;MenuItem.Icon&gt;
              &lt;Image Source="C:\Dropbox\Development\BugOff\BugOff\Resources\report48.png" Width="20" Height="20" /&gt;
          &lt;/MenuItem.Icon&gt;
      &lt;/MenuItem&gt;
  
      &lt;MenuItem x:Name="Admin" Header="_Admin" FontWeight="Bold" Foreground="LightBlue" FontSize="16" Click="Admin_Click" HorizontalContentAlignment="Center" ToolTip="Admin"&gt;
          &lt;MenuItem.Icon&gt;
              &lt;Image Source="C:\Dropbox\Development\BugOff\BugOff\Resources\admin48.png" Width="20" Height="20" /&gt;
          &lt;/MenuItem.Icon&gt;
      &lt;/MenuItem&gt;
  
  &lt;/Menu&gt;
  </code></pre>