title: Treeview of a Dictionary and binding checkbox to every node wpf
body: <p>I have a dictionary with list of values associated with one key. The key makes the parent node and values of list makes the child node. </p>
  
  <p>The dictionary is of type  </p>
  
  <pre><code>   Dictionary&lt;string,List&lt;string&gt;&gt;
  </code></pre>
  
  <p>I have a populated dictionary hierarchyList of the same type. Here is the code i tried but it doesn't work .</p>
  
  <pre><code>   &lt;TreeView ItemsSource="{Binding hierarchyList}" &gt;
              &lt;TreeView.ItemTemplate&gt;
              &lt;HierarchicalDataTemplate ItemsSource="{Binding Keys}"&gt;
                  &lt;TextBlock Text="{Binding Values}"/&gt;
              &lt;/HierarchicalDataTemplate&gt;
          &lt;/TreeView.ItemTemplate&gt;
  
      &lt;/TreeView&gt;
  </code></pre>
  
  <p>And also i need checkbox binded with each node. How do i go about that?</p>