Select to view content in your preferred language

Couple of questions on adjusting the "Legend with Templates" sample

451
2
06-07-2011 11:45 AM
DanielSchatt
Regular Contributor
hi all, I'm using the legend border panel from the "Legend with Templates" sample and there are a couple of changes I want to make.  I figured out how to make it draggable by using the "MouseDragElementBehavior" in Expression Blend, but now I also want to make it collapsible so the user can expand or collapse the panel when he or she wishes.  Does anyone know if there's a way to allow that behavior on a border control?

Also, I'm using a couple of the ESRI map services as base layers and when my application loads, the legend is showing my own ID name for that service and then the ESRI map service name indented underneath that.  I'd like only my own ID names for those services to be displayed in the legend when the app first loads.  Is there any way to do that?

Thanks so much for any help..

Dan
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor

the legend is showing my own ID name for that service and then the ESRI map service name indented underneath that. I'd like only my own ID names for those services to be displayed in the legend when the app first loads.


You can hook up an handler to the legend refreshed evant and change the label of the legend items in this handler.
0 Kudos
DanielSchatt
Regular Contributor
Thanks, appreciate it
0 Kudos