Hello,
I am currently working on getting a very large project built using the Silverlight API to fit into MVVM with the Prism Framework. I like the easy of use (I can see you are using viewModel constructs as well) of the new Legend feature and the databinding. I think this question will apply to many people that want to use the legend in 2.1 as the legend they use going forward. (Althought I spent a lot of time tweaking the SharpGIS legend to suit my needs 😞 ).
The question:
What would be the best way (with MVVM in mind) to "inject" aliases for layers into the legend?
IE: "WORLD_TRANSPORTATION" becomes "Streets Overlay"
One of the main issues I have with binding to the actual name of the layer is that we use the name of the layer for identification elsewhere (identifying a project in an external database by numeric ID).
Should I create my own layer class?
Should I use a data template? (doesn't seem to be too much info on what the legend control supports)
Something else?
Because this ties to ArcGIS server services now, I really want to use it going forward in my application. My guess is that it will tie to other things later (printing anyone?) 🙂 .
Thanks,
Spencer Williams
Forestar Group, Inc.