title: using a ListBox In WPF
body: <p>I've never done any work in wpf before and i'm supposed to add an undo button. I want it to look like what the undo button in VS looks like (click to undo once, hover over to get the more in depth listbox). I managed to get whats in the picture. It is inside a menuitem and i can't figure out how to just make it a white box without any borders or anything. Please Help!
  Here's code:</p>
  
  <pre><code> &lt;MenuItem Header="Edit" Width="50" HorizontalContentAlignment="Center" &gt;
              &lt;MenuItem x:Name="MenuCopy" Header="Copy to Excel" &gt;
                  &lt;MenuItem.Icon&gt;
                      &lt;Image Source="copy.ico" Width="24" Height="24"  /&gt;
                  &lt;/MenuItem.Icon&gt;
              &lt;/MenuItem&gt;
              &lt;MenuItem x:Name="MenuUndo" Header="Undo Last Action" IsEnabled="true"&gt;
                  &lt;MenuItem.Icon&gt;
                      &lt;Image Source="Undo.png" Width="24" Height="24" /&gt;
                  &lt;/MenuItem.Icon&gt;
                  &lt;ListBox&gt;
                      &lt;ListBoxItem Name="Item" Height="10" Width="100"&gt;
  
                      &lt;/ListBoxItem&gt;
  
                  &lt;/ListBox&gt;
              &lt;/MenuItem&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/cSgDb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cSgDb.png" alt="enter image description here"></a></p>