void EditorWidget_EditCompleted(object sender, Editor.EditEventArgs e) { if (e.Action != Editor.EditAction.Add || e.Action != Editor.EditAction.Cancel) { Editor editor = null; if (sender is EditorWidget) editor = (sender as EditorWidget).DataContext as Editor; else editor = sender as Editor; if (editor != null && editor.CancelActive.CanExecute(null)) editor.CancelActive.Execute(null); } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.