gpt4 book ai didi

c# - 如何将形状集合绑定(bind)到路径?

转载 作者:太空狗 更新时间:2023-10-29 23:10:45 25 4
gpt4 key购买 nike

我正在尝试查找,但结果是关于绑定(bind)路径,而不是 System.Windows.Shapes.Path

如何将它绑定(bind)到 ShapesObservableCollectionLineRectance 等或 LineGeometry, RectangleGeometry

最佳答案

您可以使用 GeometryGroup ,并将其 Children 绑定(bind)到 GeometryCollection .然后可以将其设置为路径的 Data

关于c# - 如何将形状集合绑定(bind)到路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5600661/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com