How can I expand the whole TreeView in Silverlight?
EDIT: Here is the XAML :
<controls:TreeView x:Name="tv">
<controls:TreeView.ItemTemplate>
<common:HierarchicalDataTemplate ItemsSource="{Binding Children}">
<CheckBox IsChecked="{Binding Visible, Mode=TwoWay}" Content="{Binding Name}"/>
</common:HierarchicalDataTemplate>
</controls:TreeView.ItemTemplate>
</controls:TreeView>
Perhaps using the ItemTemplate makes the ItemContainerGenerator.ContainerFromIndex return null on any index?