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)})});