title: An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll in WPF telerik TreeView Control
body: <p>Here is my xaml </p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;sampleData:MainWindow  x:Key="DataSource"/&gt;
      &lt;DataTemplate x:Key="CustomComponentParameter"&gt;
          &lt;TextBlock Text="{Binding Name}" /&gt;
      &lt;/DataTemplate&gt;
      &lt;HierarchicalDataTemplate x:Key="CustomComponent" ItemTemplate="{StaticResource CustomComponentParameter}"
         ItemsSource="{Binding Parameters }"&gt;
          &lt;TextBlock Text="{Binding Name}" /&gt;
      &lt;/HierarchicalDataTemplate&gt;
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>for the telerik control </p>
  
  <pre><code>    &lt;telerik:RadTreeView ItemsSource="{Binding Source={StaticResource DataSource},Path=SummaryViewCollection}"  ItemTemplate="{StaticResource CustomComponent}" HorizontalAlignment="Left" Height="77" Margin="345,482,0,0" VerticalAlignment="Top" Width="449"&gt;
  
      &lt;/telerik:RadTreeView&gt;
  </code></pre>
  
  <p>Here is my Codebehind classes </p>
  
  <p>Code for the main Codebehind Class MainWindow.xaml.cs</p>
  
  <pre><code> public partial class MainWindow : Window
   {
      public ObservableCollection&lt;CustomComponent&gt; SummaryViewCollection { get; set; }
      public MainWindow()
      {          
         this.SummaryViewCollection = //code to fill in the details 
      }           
   }
  </code></pre>
  
  <p>Here is the code for CustomComponentClass </p>
  
  <pre><code>public class CustomComponent
  {
  
      private ObservableCollection&lt;CustomComponentParameter&gt; parameters = new ObservableCollection&lt;CustomComponentParameter&gt;();
  
  
      public string Name
      {
          get;
          set;        
      }     
  
      public ObservableCollection&lt;CustomComponentParameter&gt; Parameters
      {
          get
          {
              return this.parameters;
          }
  
          set
          {
              this.parameters = value;
          }
      }
  }
  </code></pre>
  
  <p>Code for the CustomComponentParameter Class</p>
  
  <pre><code>public class CustomComponentParameter
  {       
      public string Name
      {
          get;set;
      }
  
      public string Value
      {
          get;set;
      }
  
      public bool HasErrors
      {
          get;set;
      }
  
      public bool IsDuplicate
      {
          get;set;
      }
  
  
      public bool IsMissing
      {
          get; set;
      }
  }
  </code></pre>
  
  <p>Everytime i run it  i get the following error "An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll". Cannot evaluate expression because the current thread is in a stack overflow state.
  Any suggestion on this? Thanks </p>