title: How do I Reference an Embedded Resource in Silverlight 2
body: <p>I have the following simple button with an image as the template.  The problem is that I want to change the image to a resource, instead of a content reference.  I want to do this so I can share the DLL as a re-usable library, and it doesn't work well when I do that.  </p>
  
  <p>How do I tell the Image object to use an embedded resource in a declarative way?</p>
  
  <pre><code>&lt;Button x:Name="LogoutButton" Click="Button_Click"&gt;
    &lt;Button.Template&gt;
      &lt;ControlTemplate&gt;
        &lt;Image Source="Resources/logout.png" /&gt;
      &lt;/ControlTemplate&gt;
    &lt;/Button.Template&gt;
  &lt;/Button&gt;
  </code></pre>