title: How could I put a border on my grid control in WPF?
body: <p>How do I put a border on my grid in C#/WPF?</p>
  <p>This is what I would like it to be, but puts a border around the whole thing instead of the grid control I put in my application.</p>
  <pre><code>&lt;Grid&gt;
      &lt;Border BorderBrush=&quot;Black&quot; BorderThickness=&quot;2&quot;&gt;
          &lt;Grid Height=&quot;166&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;12,12,0,0&quot; Name=&quot;grid1&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;479&quot; Background=&quot;#FFF2F2F2&quot; /&gt;
      &lt;/Border&gt;
  ... and so on ...
  </code></pre>