title: How to set ScaleTransform ScaleX property value in xaml from xaml.cs
body: <p>I am dynamically changing the canvas background in my app.</p>
  
  <p>The <code>page.xaml</code> code is:</p>
  
  <pre><code>   &lt;Canvas x:Name="canvasBoard" Height="695" Width="1365" Grid.Row="0"&gt;
          &lt;Canvas.Background&gt;
              &lt;ImageBrush Stretch="None" ImageSource="/Assets/board.png"/&gt;
          &lt;/Canvas.Background&gt;
          &lt;Canvas.RenderTransform&gt;
              &lt;ScaleTransform ScaleX="1.0"/&gt;
          &lt;/Canvas.RenderTransform&gt;
      &lt;/Canvas&gt;
  </code></pre>
  
  <p>I want to change the <code>ScaleTransfom ScaleX</code> value dynamically to the background selected by the <code>page.xaml.cs</code> but am unable to do so. Any help is appreciated.</p>