Here is the scenario I am trying to solve with tree view. I am trying to display my object graph with Tree view. I can compare my graph with windows explorer with multiple levels of folders, where files may or may not exist under a folder.
I should be able to drag files into various folders. Folders should not be drag gable. Also I should be able to set different CSS to file types and folder types.
Class MyFolder : MyFile
{
//Children type 1
List<MyFolder> Folders;
// Children type 2
List<MyFile> Files;
}
Questions
1)How I can bind 2 different object types(MyFolder,MyFile) as children
2)How do I make Folder objects non drag gable and set only File objects drag gable.
3)I guess if I can do above, I am expecting I can also set CSS separately for MyFolder type and MyFile type objects.
Thank you for your response.