Hi
I created following TOC from the Silverlight Samples Page:
<ListBox ItemsSource="{Binding ElementName=map, Path=Layers.[0].Layers}" MinWidth="330" Margin="5" FontWeight="Normal">
<ListBox.ItemsPanel>
<ItemsPanelTemplate VirtualizingStackPanel.VirtualizationMode="Standard" />
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox Margin="2"
Name="WasserhaltungMXD"
Content="{Binding Name}" Tag="{Binding ID}"
ClickMode="Press"
Click="CheckBox_Click2"
IsChecked="{Binding DefaultVisibility}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
Now i have two Question:
1. Is it possible to group the TOC by individual Groups, so that the List box consists of some kind of TreeView, and not all Sublayer-Checkboxes are shown at once??
2. Is it possible to create a Slider to change the Opacity of the Sublayers, like one can do it with the Layers??