<esri:Legend.LayerTemplate> <DataTemplate> <CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" > </CheckBox> </DataTemplate> </esri:Legend.LayerTemplate>
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?
<esri:Legend.LayerTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" VerticalAlignment="Center"> <CheckBox.Content> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Layer.ID, StringFormat='\{0\} / '}" /> <TextBlock Text="{Binding Label}" /> </StackPanel> </CheckBox.Content> </CheckBox> </StackPanel> </DataTemplate> </esri:Legend.LayerTemplate>