An open API service indexing awesome lists of open source software.

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.

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).