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