Silverlight 4 application. Made legend templates. The Checkbox on the TOC module is not working. here is the xaml code for the template:
<DataTemplate x:Key="LayerTemplate">
<StackPanel Margin="0,-1" Orientation="Horizontal">
<ToolTipService.ToolTip>
<StackPanel MaxWidth="400">
<TextBlock FontWeight="Bold" Text="{Binding Layer.ID}" TextWrapping="Wrap" />
<TextBlock FontWeight="Bold" Text="{Binding Label}" TextWrapping="Wrap" />
<TextBlock Text="{Binding Description}" TextWrapping="Wrap" />
<TextBlock Text="{Binding SubLayerID, StringFormat='SubLayer ID : {0}'}" />
</StackPanel>
</ToolTipService.ToolTip>
<Grid>
<!--<CheckBox IsChecked="{Binding IsEnabled, Mode=TwoWay}" VerticalAlignment="Center"/>-->
<CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnable, Mode=TwoWay}"
IsEnabled="{Binding IsInScaleRange,Mode=TwoWay}" IsHitTestVisible="False" VerticalAlignment="Center"/>
<!--<TextBlock Text="{Binding Label}" VerticalAlignment="Center"/>-->
</Grid>
</StackPanel>
</DataTemplate>