Javi.ExplorerTreeView

This package provides a Windows Explorer application navigation like usercontrol for WPF. The usercontrol inherits from the standard WPF treeview and can be styled like a basic treeview. Follow the link to the project site which leads to the github repository for this package to see some sample screens.


Keywords
treeview, C#, wpf, windows, explorer, navigation, shell, shellitem
License
MIT
Install
Install-Package Javi.ExplorerTreeView -Version 1.0.4

Documentation

NuGet

Javi.ExplorerTreeView

This package provides a Windows Explorer application navigation like usercontrol for WPF. The usercontrol inherits from the standard WPF treeview and can be styled like a basic treeview.

Desktop sample This PC sample MyComputer sample Videos special folder sample

Features

  • Provides a Windows Explorer navigation pane alike treeview usercontrol for WPF
  • Targets .NET Full Framework 4
  • Supports lazy loading of treeview items
  • Dependency property to get the selected folder
  • Dependency property to set the root of the treeview
  • Dependency property to set if the tree items should be sorted
  • Dependency property UnloadItemsOnCollapse to set if the tree items should be unloaded when a branch is collapsed

Getting Started

  • Install package using nuget

Install Javi.ExplorerTreeView from NuGet using the Package Manager Console with the following command

PM> Install-Package Javi.ExplorerTreeView

Alternatively search on NuGet Javi.ExplorerTreeView

Usage

See the demo application.

Demo application

A C# WPF demo application is available which shows the usage of the ExplorerTreeView control. Code from this demo should not be used in production code, the code is only to demonstrate the basic usage of WPF ExplorerTreeView usercontrol.

License

This project is licensed under the MIT License.

Acknowledgments

Based on https://blog.khmylov.com/2010/11/18/wpf-explorer-treeview-with-selectedpath-binding/
which inherits from https://www.codeproject.com/Articles/21248/A-Simple-WPF-Explorer-Tree
see also https://joshsmithonwpf.wordpress.com/2007/11/09/reaction-to-a-simple-wpf-explorer-tree/
Uses Dirkster99's package Dirkster.WSF providing access to the Windows Shell. This package is used to interact with the windows shell in order to obtain all special folders. However, the user of this ExplorerTreeView usercontrol does not need to known anything about or have to interact with Dirkster's package.