if (this.editor.CancelActive.CanExecute(null)) this.editor.CancelActive.Execute(null);
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.
ログインすると、投稿したり、更新をフォローしたりできます。初めてですか?無料アカウントを登録しましょう。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.