In the 2.1 API Legend Control used in the online samples, the layers are displayed in the legend using the template:
<esri:Legend.LayerTemplate>
<DataTemplate>
<CheckBox Content="{Binding Label}"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
IsEnabled="{Binding IsInScaleRange}" >
</CheckBox>
</DataTemplate>
</esri:Legend.LayerTemplate>
In the CheckBox control, is it possible to name the control using map layer name and its parent service? I.E.: something like x:Name="cbx + {Binding ParentServiceName} + {Binding Label}" and also remove any blanks in those name.For example, if I have a service called "Bedrock Index Map" and a layer in it called "Bedrock Geology", then my CheckBox name would become "cbxBedrockIndexMapBedrockGeology".Can this be done?P.S.: Where do we get the list of things we can use for Binding? Is Label a property of a layer in a map service?