2013-09-22 55 views

回答

1

要初始化您的收藏点错误的方式:

canvasGraph.Children.Add(new Polyline(){ 
    Points = new PointCollection(
    new List<Point> { 
     new Point(x1, y1), 
     new Point(x2, y2)})});