I allow a user to track polygons with my software. I give them the option to hit ESC to cancel out of the tracking and this works just fine when the user has clicked 2 or more points. If they've only clicked 1 point though, it doesn't. The point will stay there and be present when they try to start tracking again.
If I set a break point in the track ended event handler, it never gets reached if there is only one tracked point.
My code that catches the ESC key press looks like this:
//my own flags above this
map.TrackOverlay.MouseDoubleClick(new InteractionArguments());
map.TrackOverlay.TrackMode = TrackMode.None;
map.Refresh(map.TrackOverlay);
Kimberly