-1
내 폴리 라인의 한쪽 끝이 0,0로 고정되어 있다고 가정하고, 마우스를 움직일 때 폴리 라인의 다른 쪽 끝이 내 mousepointer에 정확하게 들어가기를 원합니다. 이 경우 어떻게해야합니까?마우스 포인터를 추적하는 한쪽 끝으로 폴리 라인을 만드는 방법
죄송합니다. 저는 Silverlight를 처음 사용했습니다.
내 폴리 라인의 한쪽 끝이 0,0로 고정되어 있다고 가정하고, 마우스를 움직일 때 폴리 라인의 다른 쪽 끝이 내 mousepointer에 정확하게 들어가기를 원합니다. 이 경우 어떻게해야합니까?마우스 포인터를 추적하는 한쪽 끝으로 폴리 라인을 만드는 방법
죄송합니다. 저는 Silverlight를 처음 사용했습니다.
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;