Sketch editing cancellation

780
1
01-23-2017 11:39 AM
MichaelStruk
New Contributor II

Hi

I'm migrating from ArcGISRuntime 10.2 to 100.0 and implementing drawing using sketch editor.

How can I cancel current drawing and start a new right after cancellation?
SketchEditor.StartAsync() method does not have CancellationToken as a parameter.

Thanks

0 Kudos
1 Reply
StephenFoster
New Contributor II

This works for me:

if (MyMapView.SketchEditor.CancelCommand.CanExecute(null)) MyMapView.SketchEditor.CancelCommand.Execute(null);