Brannon

Can someone show me (or point me to a reference on) the right way to bind a PointCollection to a PolyLineSegment (or similar poly segment) contained in a PathFigure I'd like to be able to simply update my point collection and have my figures change on the fly. And is it possible to bind to the first element in the as the StartPoint of the PathFigure with the rest of the elements being bound to the polyline Thanks for your time.


Re: Windows Presentation Foundation (WPF) right way to bind PointCollection to PolyLineSegment?

Adam Smith - MSFT

Can you not simply put a binding on PolyLineSegment.Points

As for having collection[0] be a start point and collection[1...n] be the rest, no, I don't think you can do that. However, if start point and Points[0] are the same location, that should behave the same way, so you can probably just bind StartPoint to collection[0] and Points to collection and be good.

Please let us know if this works!