Quick easy points for anyone who knows the answer:
The following Xaml path works fine in WPF but crashes in Silverlight. I can verify this behaviour in Kaxaml.
The path code is
<Path Fill="#FFEDEDED" StrokeThickness="1" Stroke="#FFA3A3A3" Opacity="0.7"
VerticalAlignment="Center" HorizontalAlignment="Center" >
<Path.Data>
<PathGeometry Figures="m 1 2 l 4.0525 5.2361 l 4.0527 -5.2361 z "/>
</Path.Data>
</Path>
The exception is a script error
Unhandled error in Silverlight Application. Failed to create a System.Windows.Media.PathFigureCollection from the text 'm 1 2 l 4.0525 5.2361 l 4.0527 -5.2361 z'
Its supposed to draw a triangle like so:
Any ideas?
Unlike WPF Silverlight does not support converting a string to Figures.
I got the following underline/hover error message in Expression Blend:
The equivalent triangle, authored via Blend, for Silverlight is:
<Path Fill="#FFEDEDED" StrokeThickness="1" Stroke="#FFA3A3A3" Opacity="0.7"
VerticalAlignment="Center" HorizontalAlignment="Center"
Data="m 1 2 l 4.0525 5.2361 l 4.0527 -5.2361 z" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With