Map.MouseLeftButtonDown += (sender, e) => { editor.StartEdit(graphic); editing = true; }; void editor_GeometryEdit(object sender, EditGeometry.GeometryEditEventArgs e) { if (e.Action.ToString() == "EditCanceled") { editing = false; } else if (e.Action.ToString() != "EditStarted") { editor.StopEdit(); editing = false; } }