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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.