Im developing a window based application using wpf. i have a window with a treeview and frame in it. i want to control the data populating in the frame using the treveview nodes. Just like our file explorer in our windows machines. for that i need to know what is the level of the node i have selected on the treeview. I know how to do this with window forms but im new to WPF. Please some one kindly help me how to get the nodelevel of treeview in WPF.
Note: im populating the treeview from a backend table programatically