Reputation: 351
I'm trying to get a file explorer on c# and I have found nothing about this. Is c# provide a file explorer already ready to work?
If not, is TreeView a good idea to create mine? Have you got some link to perform this?
Thanks in advance for these informations.
Upvotes: 0
Views: 1516
Reputation: 50712
C# Doesn't provide file explorer tree as it is, but if you want to create a dialog for selecting the folder you can use FolderBrowserDialog(full dialog for folder selection)
However if you want to create one, yes, It is easy to do it with WPF TreeView. As a hint Take TreeView, write HiearchyDataProvider which provides files and folders and templates for each node to display icons and so on
P.S. Simple google search shows a lot of ready-samples
Upvotes: 1