c# - Wp7 create path element from code and set Data element -
I have this path in xaml:
& lt; Path data = "M16, 12 16,0 0,12" Fill "" {static resource phone accentbrush} "/> I created it dynamically via code The problem is that I can understand the way to set the data element, I have read something about geometry, purse (), then it came to know that it can not be used only in WP7 projects. / P>
Any ideas?
Specifying paths in the code You will need to create an geometry object and set that as the value of the data property. Example: myPath.Data = New EllipseGeometry {center = New point (50, 50), Radius X = 25, Radius = 25}; It is not possible to use a brief syntax (eg " M 16,12 16,0 0,12 ") from the back of the code. This is only supported by the XML Parser. See more
Comments
Post a Comment