I want to Bind to ViewModel the selected Node of the Treeview , notice that every node is a NavPoint (from the EPUB's Table Of Content) , How create a dependency property "SelectedNode" on Control that Binds the Selected Node in the correct Type . I used
<TextBlock Text="{Binding SelectedItem ,ElementName=myTreeview}"/>
but i want to bind it to my MainWindowViewModel.cs class to manipulate it and make some changes over it !