I am trying to explore the SketchEditor feature. I am trying to use the sketch editor in my application using MVVM pattern. The code of DRAW and EDIT , is written in ViewModel Class, whereas the COMPLETE button is binded to the CompleteCommand of SketchEditor. DRAW operation works absolutely fine on MouseDownEvent, but when I go for Edit , I get TaskCancelled Exception on line
var mapPoint = (MapPoint)await MyMapView.SketchEditor.StartAsync(SketchCreationMode.Point, false);
I am unable to understand why such problem is coming ??
The code runs absoultely fine , If I write everything in the code behind file ..
Can anyone help me with this issue ?