title: WPF - How to dock a Border onto a Canvas?
body: <p>I have a Border inside a Canvas. The Border's height/width are varying according to its contents. I want the Border to stretch out to fill up the entire Canvas. How can I do that?</p>
  
  <p>I have tried this on the Border without success:</p>
  
  <pre><code>Height="{Binding ElementName=MainCanvas, Path=Height}" 
  Width="{Binding ElementName=MainCanvas, Path=Width}"
  </code></pre>