Select to view content in your preferred language

Sketch editing cancellation

1169
1
01-23-2017 11:39 AM
MichaelStruk
Deactivated User

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
Occasional Contributor

This works for me:

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