title: I need help implementing a style into my radTreeView
body: <p>I want to take the highlight background off of the radtreeview. I created a style to do this, but I keep getting errors and exceptions such as "Items collection must be empty." If I comment out the style the application works fine, so I know that it is the cause of the problem. I am fairly new to WPF, and I am sure I just don't understand how to use styles yet.
  Thanks for your help. Here is the code.</p>
  
  <pre><code>&lt;Grid x:Name="LayoutRoot" Background="Salmon"&gt;
  
          &lt;telerik:RadTreeView x:Name="radTreeView" Margin="8" ItemsSource="{Binding Errors}" Background="Salmon" Style="{StaticResource treeStyle}"&gt;
               &lt;Style TargetType="{x:Type telerik:RadTreeViewItem}" x:Name="treeStyle"&gt;
                  &lt;Setter Property="Focusable" Value="False"/&gt;
                  &lt;Style.Triggers&gt;
                      &lt;Trigger Property="IsMouseOver" Value="true"&gt;
                          &lt;Setter Property="Background" Value="{x:Null}"/&gt;
                          &lt;Setter Property="BorderBrush" Value="{x:Null}"/&gt;
                      &lt;/Trigger&gt;
                  &lt;/Style.Triggers&gt;
              &lt;/Style&gt;
  
  
              &lt;telerik:RadTreeView.ItemTemplate&gt;
                   &lt;HierarchicalDataTemplate ItemsSource="{Binding SubItems}" &gt;
                      &lt;Grid Background="Salmon"&gt;
                          &lt;Grid.RowDefinitions&gt;
                              &lt;RowDefinition/&gt;
                              &lt;RowDefinition/&gt;
  
                          &lt;/Grid.RowDefinitions&gt;
                          &lt;TextBlock Text="{Binding Description}" IsHitTestVisible="False" /&gt;
  
                          &lt;ListBox Grid.Row="1" ItemsSource="{Binding Messages}" Margin="20,0,0,0" BorderBrush="#00000000" BorderThickness="0" Background="Salmon" IsHitTestVisible="False" &gt;
                              &lt;ListBox.ItemTemplate&gt;
                                  &lt;DataTemplate&gt;
                                      &lt;TextBlock Text="{Binding Message}"/&gt;
                                  &lt;/DataTemplate&gt;
                              &lt;/ListBox.ItemTemplate&gt;
                          &lt;/ListBox&gt;
                      &lt;/Grid&gt;
  
                  &lt;/HierarchicalDataTemplate&gt;
  
  
              &lt;/telerik:RadTreeView.ItemTemplate&gt;
  
  
          &lt;/telerik:RadTreeView&gt;
  
      &lt;/Grid&gt;
  
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>If you know that this is not going to work, I was also trying to get rid of the highlight with the style code:</p>
  
  <pre><code>&lt;Style TargetType="TreeViewItem"&gt;
        &lt;Style.Resources&gt;
            &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#FFF"/&gt;
            &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="#000"/&gt;
       &lt;/Style.Resources&gt;  
  &lt;/Style&gt;
  </code></pre>