Legend layer selection

501
6
04-16-2014 10:11 AM
LuisGarcia2
Occasional Contributor II
I have been working with the legend we display with our map. I'd like to be able to select a layer and execute something on selected. Is that possible? I have not seen neither an event like that nor the selection itself.
0 Kudos
6 Replies
brettangel
Occasional Contributor II
MapApplication.Current.SelectedLayer will get you there.
0 Kudos
LanceCrumbliss
Occasional Contributor II
MapApplication.Current.SelectedLayer will get you there.


Are you sure that is an ArcGIS API for Silverlight property?
0 Kudos
brettangel
Occasional Contributor II
Are you sure that is an ArcGIS API for Silverlight property?


ESRI.ArcGIS.Client.Extensibility
0 Kudos
LanceCrumbliss
Occasional Contributor II
ESRI.ArcGIS.Client.Extensibility


OK, cool.  Never used that library before.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
OK, cool.  Never used that library before.

That's a Silverlight Viewer library, so might be better to post the question of the Viewer forum.
0 Kudos
LanceCrumbliss
Occasional Contributor II
That's a Silverlight Viewer library, so might be better to post the question of the Viewer forum.


LOL...ok, that was my original thought, too.  That's why I asked if it was an ArcGIS Silverlight API property :).  I figured that the question was answered regardless (I think; I'm not a Silverlight Viewer user), so why worry.....
0 Kudos