title: How do I put a border around an image in WPF?
body: <p>I have a <code>StackPanel</code> containing five images and I want to put a black border around each image.</p>
  
  <p>The XAML I have at the moment is:</p>
  
  <pre><code>&lt;Image Name="imgPic1"
         Width="100"
         Height="75"
         Stretch="Fill"
         VerticalAlignment="Top" /&gt;
  </code></pre>
  
  <p>I thought I would be just able to put a one-unit margin or padding on the image and set a background color to <code>000000</code> but <code>Padding</code> and <code>Background</code> are both invalid for images.</p>
  
  <p>What is an easy way to do this in XAML? Do I really have to put each image inside another control to get a border around it or is there some other trickery I can use?</p>