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.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.