I'm looking for a solution to have a treeview which its nodes are usercontrol. I have already defined the usercontrol (that should be instead of tree view node) , however I don't know how I can implement it as treeview.
I'd be thankfull you guide me how I can implement that,
However in my case the tree is generating dynamically in code . I mean I need to add a user control as root ,then in code, based on some bussiness, I'll find the children , then I need to add the children to the root.
Based on above code ,here is what I have done : I Added the usercontrol (ProductDetail) in treeview as root . After that I want to get the root and add its children. but the type of treeview.Items[0] is not a treeviewItem , it's type of usercontrol(ProductDetail).
Would you please help me how I can find specific node in treeview , to be able to add its children.