title: Perfect Center on WPF Canvas
body: <p>Since the canvas requires a Top/Left for placement, if you want to center something, is adding a grid at the proper Canvas.Top with HorizontalAlignment="Center" the best way to do it, or is there a better way?</p>
  
  <p>This snip is a 150X300 canvas, with some content centered in a grid ....</p>
  
  <pre><code>&lt;Canvas Width="150" Height="300"&gt;
      &lt;Grid Canvas.Top="75" Width="106" HorizontalAlignment="Center"&gt;
          {whatever you want centered}
      &lt;/Grid&gt;
  &lt;/Canvas&gt;
  </code></pre>