title: How to edit an item in the treeview in wpf
body: <p>My <code>TreeView</code> <code>ItemTemplate</code> looks like below.</p>
  
  <pre><code>&lt;TreeView.ItemTemplate&gt;
      &lt;HierarchicalDataTemplate ItemsSource="{Binding Connections}"&gt;
          &lt;WrapPanel &gt;
              &lt;CheckBox  VerticalAlignment="Center" Command="{Binding UpdateConnections}" CommandParameter="{Binding}" IsChecked="{Binding Status,  Mode=TwoWay}" Focusable="False"  Style="{StaticResource ResourceKey=TreeView_CheckBox_Style}"&gt;&lt;/CheckBox&gt;
               &lt;TextBlock Text="{Binding Name}"  Style="{StaticResource ResourceKey=treeTextBoxStyle}"  /&gt;
           &lt;/WrapPanel&gt;
      &lt;/HierarchicalDataTemplate&gt;
  &lt;/TreeView.ItemTemplate&gt;
  </code></pre>
  
  <p>I am using MVVM. I would like to edit the <code>TextBox</code> if my tree item starts with "s".</p>
  
  <p>I basically double click my <code>TreeViewItem</code> and I should be able to type in it.</p>
  
  <p>How do i do it ?</p>