I am creating a silverlight application that will allow you to click in two places on the screen and draw an ellipse, the main axis of which begins and ends at the places of the click. The clickable area is a Silverlight grid control. Currently:
When you first click, I:
- Drop marker on click item.
- Creating an ellipse and its education to the grid.
- Create and customize AngleTransform on an ellipse.
When moving the mouse, I:
- Compute the distance to the first click point.
- Sets the width of the ellipse to this length.
- Calculation of the line angle for the click point and X-Axis grid.
- Sets the angle of the AngleTransform Angle ellipse to this corner.
So far so good. An ellipse is displayed, and its length and rotation angle follow the mouse as it moves.
.
, ?