3
我完全厌倦将Rectangle
添加到路径图中。下面是我试过的代码,但它正确不结果为Rectangle
:如何将矩形添加到PathFigure WPF
PathGeometry geom = new PathGeometry();
Geometry g = new RectangleGeometry(myrectangel);
geom.AddGeometry(g);
PathFigureCollection collection = geom.Figures;
pathfigure = collection[0];
有没有其他办法?
感谢Nitesh ......但我需要将它添加到的PathFigure,最后使用它,因为我有很多rectagles像上面.... /// –
你可以用'GeometryGroup'。 – Nitesh
多数民众赞成在酷Nitesh,。一个想法...谢谢 –