Reputation: 22114
Consider the following piece of code:
<Path x:Name="CheckMark" Stroke="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type local:PropertyGrid}, ResourceId=GlyphBrush}}" StrokeThickness="2" SnapsToDevicePixels="False" Data="M 0 0 L 13 13 M 0 13 L 13 0 M 20 20" />
I know that, the part inside Data draws a cross, but I don't understand the syntax of it. It's probably like Old School QBasic Draw commands. Can someone explain to me, why it draws a Cross.
And for future reference, could someone point me to resources where I can get explanation on the commands to Draw Paths
.
Upvotes: 1
Views: 1737
Reputation: 50
The link provided in the answer is dead.
Please use this link for the documentation of the general Path.Data property and this link for the "Move and Draw" command syntax as used in your example code.
Upvotes: 1
Reputation: 1
http://msdn.microsoft.com/en-us/library/cc294564%28v=Expression.10%29 this is wpf geometry, use expression blend to draw the path
Upvotes: 0