table of content (legend), I want to check and uncheck sublayers independently

Discussion created by aafgilbert01 on Aug 28, 2012
Latest reply on Aug 28, 2012 by aafgilbert01

I am new to ArcGis Runtime and XAML. I am building a wpf user control in visual studio 2010 to display a map. I have been able to use an example to display the table of content of a map with a slider and checkbox for the layer group using the XAML template defined below.

            <DataTemplate x:Key="My_MapLayerTemplate">
                <StackPanel Orientation="Horizontal">
                    <CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}"/>
                    <Slider Maximum="1" Value="{Binding Layer.Opacity, Mode=TwoWay}" Width="50" />

This example works and display a slider and a check box for all layer. I would like to have them for all sublayers independently. Is this possible.