2010-02-19 79 views

回答

1
System.Windows.Point staticPoint = new System.Windows.Point(100, 100); 
System.Windows.Point mousePoint = e.GetPosition(CanvasContainer); 

PointCollection polygonPoints = new PointCollection(); 
polygonPoints.Add(staticPoint); 
polygonPoints.Add(mousePoint); 

polyline.Points = polygonPoints;