如何将Shapes集合绑定到Path?

时间:2011-04-08 20:52:56

标签: c# .net wpf graphics

我正在尝试查看此内容,但结果是关于绑定路径,而不是System.Windows.Shapes.Path

如何将其绑定到ObservableCollection Shapes LineRectance等,或LineGeometryRectangleGeometry

1 个答案:

答案 0 :(得分:6)

您可以使用GeometryGroup,并将其Children绑定到GeometryCollection。然后可以将其设置为路径Data