Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这样的事情: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)})});