title: Checkable MenuItem appearing like ToggleButton in C# WPF
body: <p>I am trying to create menu with <code>MenuItem</code> that is checkable, but looks like toggle button. Currently, it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Eb4Hd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Eb4Hd.png" alt="enter image description here"></a> </p>
  
  <p>You'd agree, this looks pretty ugly and it's not intuitive whether check mark belongs to <code>Views</code> or to <code>Actions</code>.</p>
  
  <p>I'm aware that regular <code>CheckBox</code> has property <code>Appearance</code> which can be set to <code>Button</code>, making <code>CheckBox</code> appear like <code>ToggleButton</code>. However, there is no such property for <code>MenuItem</code> object. </p>
  
  <p>I've also tried to add <code>ToggleButton</code> to menu, but it's appearance differs from what I'd expect. Here's the screenshot of this try:</p>
  
  <p><a href="https://i.stack.imgur.com/OSeRt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OSeRt.png" alt="enter image description here"></a></p>
  
  <p>I expect it to look something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/opAnp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/opAnp.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to display toogle button control (or something appearing like it) in menu bar?</p>
  
  <p>P.S. If You need my current test code, here it is:</p>
  
  <pre><code>&lt;Menu Grid.Row="0" HorizontalAlignment="Stretch" IsHitTestVisible="True" x:Name="mnuMain"&gt;
      &lt;MenuItem Header="File" x:Name="mnuFile"&gt;
          &lt;MenuItem Header="Export List to Excel" x:Name="btnExportToExcel" Click="OnExportToExcel"/&gt;
      &lt;/MenuItem&gt;
      &lt;MenuItem Header="Views" x:Name="mnuViews"&gt;
          &lt;MenuItem Header="Item1" x:Name="chkItem1" IsCheckable="true" Click="OnChkItem1Click" /&gt;
          &lt;MenuItem Header="Item2" x:Name="chkItem2" IsCheckable="true" Click="OnChkItem2Click" /&gt;
      &lt;/MenuItem&gt;
      &lt;MenuItem Header="Actions" x:Name="mnuActions" IsCheckable="true" &gt;
          &lt;!-- --&gt;
      &lt;/MenuItem&gt;
      &lt;MenuItem Header="Analysis" x:Name="btnAnalysis" Click="OnAnalysisClick"/&gt;
      &lt;MenuItem Header="History" x:Name="btnHistory" Click="OnHistoryClick"/&gt;
      &lt;ToggleButton x:Name="tbTest" BorderThickness="0" Background="Transparent" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch" Click="OnTbTestClick"&gt;Test&lt;/ToggleButton&gt;
  &lt;/Menu&gt;
  </code></pre>