I have some data
Now I want to create a curve using this data. I think to use the LineSegments. But I can't understand how to bind the LineSegment Points to this data?Code:<Array> <Element Value="30"/> <Element Value="50"/> <Element Value="10"/> </Array>
I mean, is there any syntax that helps to write instead of
something like this:Code:<GeometryDrawing.Geometry> <PathGeometry> <PathFigure> <LineSegment Point="0,30"/> <LineSegment Point="20,50"/> <LineSegment Point="40,10"/> </PathFigure> </PathGeometry> </GeometryDrawing.Geometry>
The main problem is how to bind the coordinates to point structure of a linesegment using binding.Code:<GeometryDrawing.Geometry> <PathGeometry> <PathFigure> <LineSegment Point={Binding ????}/> </PathFigure> </PathGeometry> </GeometryDrawing.Geometry>
Thanks in advance!


Reply With Quote
