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