mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-23 02:06:35 +08:00
画图画板示例完事
This commit is contained in:
@@ -44,11 +44,9 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
var figure = new PathFigure { StartPoint = Points[0] };
|
||||
geometry.Figures.Add(figure);
|
||||
|
||||
foreach (var point in Points)
|
||||
for (int i = 1; i < Points.Count; i++)
|
||||
{
|
||||
if (Points[0] == point) continue;
|
||||
|
||||
LineSegment arc = new LineSegment(point, true);
|
||||
LineSegment arc = new LineSegment(Points[i], true);
|
||||
geometry.Figures[0].Segments.Add(arc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user