2
나는 이런 일이 : canvasGraph.Children.Add(new Polyline(){Points = new PointCollection((x1, y1), (x2, y2))});
을하지만 그것은 작동하지 않습니다와 나는 그것이캔버스 요소에 많은 폴리선을 추가하는 방법은 무엇입니까?
나는 이런 일이 : canvasGraph.Children.Add(new Polyline(){Points = new PointCollection((x1, y1), (x2, y2))});
을하지만 그것은 작동하지 않습니다와 나는 그것이캔버스 요소에 많은 폴리선을 추가하는 방법은 무엇입니까?
당신은 당신의 포인트 컬렉션을 잘못된 방향으로 초기화하는 처리하는 방법을 모르겠어요 :
canvasGraph.Children.Add(new Polyline(){
Points = new PointCollection(
new List<Point> {
new Point(x1, y1),
new Point(x2, y2)})});
을