title: Add Check Box for Treeview parent nodes only Wpf
body: <p>I want to add the check box for treeview of observable collection. the following code add the check box for all the parent and children nodes. I need only for the parent node Is there any way to achieve this...</p>
  
  <pre><code>&lt;HierarchicalDataTemplate x:Key="LogFolderExplorer" DataType="{x:Type TestAutomationClient:TestArtifact}" ItemsSource="{Binding Children}"&gt;
          &lt;StackPanel Orientation="Horizontal" MinWidth="200"&gt;
              &lt;CheckBox
              Focusable="False" 
              IsChecked="{Binding IsChecked}" 
              VerticalAlignment="Center"
              /&gt;
              &lt;TextBlock Text="{Binding Name}" FontSize="14"/&gt;
          &lt;/StackPanel&gt;
      &lt;/HierarchicalDataTemplate&gt;
  </code></pre>