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.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.