title: Set background of a stackpanel to an image in c#
body: <p>I need to set the <strong>Background</strong> of a <strong>Stackpanel</strong> to some image in the resources.<br>
  I know that i should set the background as follows:  </p>
  
  <pre><code>Stack.Background= image; // don't know of what type the image should be how to set it   
  </code></pre>
  
  <p>Any help is appreciated,</p>