Select to view content in your preferred language

featurelayer - selection changed event

2213
2
06-10-2011 06:52 AM
PaulHedlund
Emerging Contributor
Is there an event in the silverlight API that will trigger when the featurelayer selection changes? 

I can't find an event in this list that does this.
0 Kudos
2 Replies
PaulHedlund
Emerging Contributor
This post kind of helped me:

http://forums.arcgis.com/threads/16710-BUG-SelectionCount-on-FeatureLayer?highlight=PropertyChanged+...

Looks like I should us PropertyChanged event with the e.PropertyName ="SelectedGraphics".

It is kind of troublesome with the event triggering multiple times for each selection change.
0 Kudos
JenniferNery
Esri Regular Contributor
If you are using PropertyChanged event, keep in mind that SelectedGraphics or SelectionCount properties get changed when you select or deselect the graphic.

Are you using Editor to select your graphic? If yes, you can look at using Editor.EditCompleted event. When inspecting the affected graphics, you can check Graphic.Selected property.
0 Kudos