title: Treeview inside a combo box WPF
body: <p>I have a tree view inside a combo box.<br>
  When I select an item from tree view, the combo box displays like this 
  "System.Windows.Controls.TreeView Items.Count:13"</p>
  
  <p>How do I change the ComboBox's SelectedItem property so that i can display the right property. I basically want the selected TreeViewItem to set the SelectedItem of the ComboBox. Here is my xaml.</p>
  
  <pre><code>&lt;ComboBox Name="CB" DropDownClosed="destTb_DropDownClosed"&gt;
      &lt;ComboBox.Resources&gt;
          &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" /&gt;
      &lt;/ComboBox.Resources&gt;
      &lt;TreeView  Background="Transparent" Name="TV" 
                  ItemsSource="{Binding FirstGroup}" 
                  SelectedItemChanged="TV_SelectedItemChanged"&gt;
           &lt;TreeView.ItemTemplate&gt;
              &lt;HierarchicalDataTemplate ItemsSource="{Binding Members}" &gt;
                 &lt;Grid&gt;
                    &lt;TextBlock Text="{Binding Name}" /&gt;
                 &lt;/Grid&gt;
              &lt;/HierarchicalDataTemplate&gt;
            &lt;/TreeView.ItemTemplate&gt;
       &lt;/TreeView&gt;
  &lt;/ComboBox&gt;
  </code></pre>