title: WPF: Strange image stretching in Buttons
body: <p>I have multiple buttons, each having a 32x32 pixels PNG image. The strange thing is, that both buttons show different sizes (Yes, I triple checked that icons are really 32x32!). The seconds button looks like as it would be 48x48 pixels in size. The funniest thing is, if I omit the <code>Stretch="None"</code> attribute, the icons are scaled up to fill nearly the whole screen.</p>
  
  <p>I cannot explain myself why this is happening!</p>
  
  <p>
      </p>
  
  <pre><code>    &lt;ToolBar Name="toolBar1" DockPanel.Dock="Top"&gt;
          &lt;Button Name="importButton" ToolTip="Import" Click="importButton_Click"&gt;
              &lt;Image Source="Icons/Import.png" Stretch="None" /&gt;
          &lt;/Button&gt;
          &lt;Button Name="toggleDetails" ToolTip="Details for Item" Click="toggleDetails_Click"&gt;
              &lt;Image Source="Icons/maximize.png" Stretch="None" /&gt;
          &lt;/Button&gt;           
      &lt;/ToolBar&gt;
  
      &lt;StackPanel Name="stackPanel1" DockPanel.Dock="Top" Orientation="Horizontal" Margin="0,5,0,5"&gt;
          &lt;Label  Name="label2" Content="Find"&gt;&lt;/Label&gt;
          &lt;TextBox  Name="tags" Width="400" KeyDown="tags_KeyDown" /&gt;
          &lt;Button ToolTip="Find" Name="findItemsButton" Click="findItemsButton_Click"&gt;
              &lt;Image Source="Icons/xmag.png" Stretch="None" /&gt;
          &lt;/Button&gt;
          &lt;CheckBox Content="Show Closed" Name="showClosedItemsCheckBox" VerticalAlignment="Center" Margin="10,0,0,0" Click="showClosedItemsCheckBox_Click" /&gt;
      &lt;/StackPanel&gt;
      &lt;TabControl  Name="tabControl" TabStripPlacement="Top"&gt;
  
      &lt;/TabControl&gt;
  
  &lt;/DockPanel&gt;
  </code></pre>
  
  <p></p>