https://github.com/picrap/virtualtreeview
A WPF TreeView that actually supports virtualization.
https://github.com/picrap/virtualtreeview
treeview virtual wpf
Last synced: 3 months ago
JSON representation
A WPF TreeView that actually supports virtualization.
- Host: GitHub
- URL: https://github.com/picrap/virtualtreeview
- Owner: picrap
- License: mit
- Created: 2016-10-24T13:11:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T16:05:27.000Z (11 months ago)
- Last Synced: 2025-03-18T04:52:10.692Z (3 months ago)
- Topics: treeview, virtual, wpf
- Language: C#
- Size: 3.86 MB
- Stars: 18
- Watchers: 3
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VirtualTreeView
A virtualizing TreeView for .NET Framezork 4.6.2, .NET 6 and .NET 8
## How to use it
It is available as a [NuGet package](https://www.nuget.org/packages/VirtualTreeView/).
The source code includes a demonstration application, where both modes (content and binding) are showed, side-by-side to traditional `TreeView` control.### The treeview itself
It works exactly as the original `TreeView` (with a lot of missing features...):
```xaml
<Setter Property="IsExpanded" Value="{Binding MyIsExpanded, Mode=TwoWay}" />
```
### The treeview item
If you move from an existing treeView, you'll need to copy/paste your `TreeViewItem` style and adapt it to `vtv:TreeViewItem` (usually no change is required, except removing the hierarchical part, which is generated when the control converts the tree to a list).
### What does work
Currently it has only the features I needed (which is showing items and let them live); all contributors are welcome. The goal is to have a complete and extensible tree view.
* With binding, `INotifyCollectionChanged` fully works, so you can dynamically change content by adding or removing elements at any point of the hierarchy.### What does not
* With binding, `INotifyPropertyChanged` **does not work at all**, since the binding is partly simulated (because the view items are not generated).
### How to contribute
Fork it, update it, and submit your pull requests.
Alternatively you can [submit requests](https://github.com/picrap/VirtualTreeView/issues).