My problem is the following:
- User loads form containing map control and then clicks the edit icon and starts editing a shape on the map.
- The shape is in edit mode as you can see the handles.
- Unfortunately when the user clicks the Save button the map updates are not captured.
- The current work-around is to click in a blank area outside the shape. This causes the handles to disappear and the Save operation succeeds.
My question: what event should I register in the map object that would detect change of focus. That is, moving out of the map control.
If could handle this event I thought I could deactivate the map (remove the handles by turning off the edit mode) and therefore allow the map to be saved correctly.
Here's a picture illustrating my problem: