Does anyone know how I can get the SelectedItem (not the Header) from a TreeView?
Here is my code:
Ok I know this is an old question and probably dead but as Charlie has it right. This is something that can also be used in code. You could do for example:
Which will show the selected item. You can add a style or DataTemplate to that or use a default DataTemplate to the object you are trying to show.