Hi, I am new to WPF and got started with that.
I am developing a source code viewer, and trying to show the list of source files in a treeview,once double click the file, use should be able to see the text[Read Only]. To be honest I never worked with treeview controls in windows forms too.
Am I supposed to load all the files into program or recursively load from source files?
How can it be implemented??
Thanks
Loading
Raaj KumarPosted Feb 28, 2010, 11:44 PM
For treeview operations, there is a control called Hierarchical Data Template. Using this you achieve what you need. There is good example for this.
http://www.codeproject.com/KB/WPF/WPF_Explorer_Tree.aspx
http://www.dev102.blogspot.com/2007/12/how-to-use-hierarchical-datatemplate-in.html
Another way is you do the same using CodeBehind i.e., in .cs file. Using Treeview and TreeviewItem control you can achieve this.
Regards,
raaj