title: Setting Button's Content to <Image> via Styles
body: <p>Can't get this to work:</p>
  
  <pre><code>&lt;UserControl&gt;
      &lt;UserControl.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;Style x:Key="TestStyle" TargetType="{x:Type Button}"&gt;
                  &lt;Setter Property="Button.Content"&gt;
                      &lt;Setter.Value&gt;
                          &lt;Image Source="D:\Temp\dictionary16.png"/&gt;
                      &lt;/Setter.Value&gt;
                  &lt;/Setter&gt;
              &lt;/Style&gt;
          &lt;/ResourceDictionary&gt;
      &lt;/UserControl.Resources&gt;
      &lt;StackPanel VerticalAlignment="Top" HorizontalAlignment="Left"&gt;
          &lt;Button Style="{StaticResource TestStyle}"/&gt;
          &lt;Button Style="{StaticResource TestStyle}"/&gt;
      &lt;/StackPanel&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>This code throws the following exception (pointing to the second button):</p>
  
  <blockquote>
    <p>Specified element is already the logical child of another element. Disconnect it first.</p>
  </blockquote>