title: How to programmatically change the scale of a canvas?
body: <p>Given a canvas object:</p>
  
  <pre><code>MainCanvas = new Canvas();
  MainCanvas.Name = "myCanvas";
  MainCanvas.Height = 100;
  MainCanvas.Width = 100;
  </code></pre>
  
  <p>How can I set its scale(<code>x</code> and <code>y</code>) via code?</p>