title: How to replace Data of XAML Path by C#
body: <p>I have a XAML Path...</p>
  
  <pre><code>&lt;Path x:Name="test" Stretch="Uniform" Fill="#FF2A2A2A" Data="F1 M 9143.18... Z "/&gt;
  </code></pre>
  
  <p>I would like to change the "Data" by C# like this (I have the new path data as string)...</p>
  
  <pre><code>test.Data = "F1 M 987... Z";
  </code></pre>
  
  <p>How I can achive this for an universal app (8.1)?</p>
  
  <p>This should work but it doesn't (Windows.UI.Xaml.Media.Geometry contains no definition for 'Parse')</p>
  
  <pre><code>test.Data = Geometry.Parse("F1 M 987... Z");
  </code></pre>
  
  <p>Any Help or Guidance with this would be appreciated.</p>
  
  <p>Thankyou in Advance.</p>
  
  <p>Ok Thank you ... here is how it works for me...</p>
  
  <pre><code>&lt;Path x:Name="test" Stretch="Uniform" Fill="#FF2A2A2A" Data="{Binding}"/&gt;
  
  test.DataContext = "F1 M 987... Z";
  </code></pre>