I just started learning WPFand MVVM.Here is what i want to do:
When use select any node from tree , Description of that node is displayed in text box.
Here is XMAL( which was working for combobox not for treeview)
<Grid Margin="0,0,0,33" Name="grid1">
<TreeView HorizontalAlignment="Left"
Margin="24,47,0,6"
Name="treeView1"
Width="120"
ItemsSource="{Binding Path=.}">
</TreeView>
<TextBox
Margin="150,47,24,61"
Name="textBox1"
Text="{Binding Path=CurrentItem.Description}"
/>
</Grid>
Try it this way
TreeView do have readonly SelectedItem property .I hope this will help.