Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to bind a collection of Shapes to a Path?

I am trying to look this up but the results come up about the binding path, not System.Windows.Shapes.Path.

How can I bind it to an ObservableCollection of Shapes, either Line, Rectance, etc or LineGeometry, RectangleGeometry, etc.

like image 277
Joan Venge Avatar asked Apr 08 '11 20:04

Joan Venge


1 Answers

You can use a GeometryGroup, and bind it's Children to a GeometryCollection. This can then be set as the Path's Data.

like image 79
Reed Copsey Avatar answered Oct 11 '22 20:10

Reed Copsey