You can use the Editor's EditCompleted event. private void MyEditor_EditCompleted(object sender, Editor.EditEventArgs e) { if (e.Action == Editor.EditAction.Select) { foreach (Editor.Change item in e.Edits) { Graphic graphic = item.Graphic; //selected graphic Layer layer = item.Layer; } } }
EditCompleted event should be fired, the action you should be checking for is Editor.EditAction.ClearSelection.You may also use the layer's PropertyChanged event, when e.PropertyName is "SelectedGraphics" or "SelectionCount".I hope that helps.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.