In Silverlight, I'm trying to draw a line on a Canvas by setting the LineGeometry element's EndPoint to the cursor position. In the Canvas' MouseMove event, I'm doing this:
line.EndPoint = e.GetPosition(this);
where "this" is the Canvas.
"line" is a LineGeometry element added to a GeometryGroup, and the GeometryGroup is added to a path object, which is added to the Canvas' Children collection.
The line does not show up on the canvas. What causes this?