What is the best solution to bind a self-referncing table from edmx like:
to a WPF TreeView
control to have something like:
What is the best solution to bind a self-referncing table from edmx like:
to a WPF TreeView
control to have something like:
I solve the problem using this
Binding Converter
:.xaml :
.cs :
Josh Smith has an excellent article on Code Project that walks you through how to craft a view model that your
TreeView
can bind to. You'll not get away with just using the EF because EF doesn't do recursion.