Are you using API v2.1?The Editor has a CancelActive command. If EditVertices is active and the edit on the geometry is not yet finalized, when CancelActive command is executed, the geometry isrolled back to its original form.You can try it out here: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave. The same thing applies for GraphicsLayer.If you need to call CancelActive in code-behind, say on KeyDown event:if (this.editor.CancelActive.CanExecute(null)) this.editor.CancelActive.Execute(null); There is also an EditCompleted event in the Editor.
if (this.editor.CancelActive.CanExecute(null)) this.editor.CancelActive.Execute(null);
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.