We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The WPF TreeView control is a hierarchical list view that represents hierarchical data in a tree-like structure with expand and collapse node options. The control provides an optimized reuse strategy, smooth scrolling experience, and virtualization. It makes illustrating an office hierarchy, organizational structure, or nested relationships in an application easy to do. The control’s performance is enhanced with features like data binding, unbound node population, template selector, drag and drop, selection with different selection modes, complete UI customization, and commands for MVVM.


Data binding

The TreeView control supports both ItemsSource binding and unbound node population. Easily customize the TreeView control as a navigation control by populating nodes in unbound mode. The layout can be easily defined in XAML. In addition, you can use all the properties and commands of the WPF TreeView in the MVVM approach.

wpf treeview data binding illustration


Load on demand

TreeView has a load-on-demand option that allows you to load huge amounts of data dynamically with a loading indicator, which improves the control’s performance.

Loading the data on demand in wpf treeview


Template

The TreeView control allows you to customize an entire tree’s nodes by hosting any image or custom view using a template. The control supports customizing each node (both parent and child nodes) through dynamic selection of the UI using a data template selector.

Template loaded in wpf treeview


Selection

  • Built-in support for selection with single, single-deselect, multiple, extended, and none select modes.
  • Background colors can be applied to selected items.
  • Support for keyboard navigation selection.

nodes are selected in wpf treeview


Editing

  • Embed any control to view or edit the data in a node.
  • Built-in editing support when the data is populated in an unbound mode. When entering into the edit mode, the node displays a TextBox.

editing a node in wpf treeview


Animation

Provides animation support when expanding or collapsing the TreeView nodes.

nodes are expanded with animation in wpf treeview


Check box

Add check boxes to each tree node and check or clear the corresponding node. Nodes related to a parent node can be checked all at once by clicking the check box in the parent node.

check box enabled in nodes of wpf treeview


Auto-size tree nodes

Automatically size the tree node height based on the node’s content to enhance content readability. Additionally, you can set the height of the tree node to one level or one node conditionally.

nodes are fitted based on its content in wpf treeview


Drag and drop

Provides built-in drag-and-drop support to allow end users to rearrange nodes. It also supports dragging and dropping nodes between TreeViews or another external control.

drag and drop support in wpf treeview


Context menu and command

Display the context menu on right clicking a node. Use the built-in RoutedUICommands to handle the context menu, edit a node, and delete one or more selected nodes.

wpf treeview shows context menu


Appearance

Illustration for expander customization in wpf treeview

Expander customization

Provides a customizable expander UI, including size customization, for creating an elegant look and feel.

Illustration for indentation in wpf treeview

Indentation

Specify the required indentation space for child nodes in the WPF TreeView control.

root lines are shown in wpf treeview

Root tree lines

Show a line between the tree nodes. Also, you can decide whether lines should be drawn between the tree nodes at the root of the TreeView control.


95+ WPF CONTROLS

Read independent,
authenticated reviews
on G2

Download Now Pricing

What do our customers say about us?

double quotes

I work for an electrical instruments plant. I purchased the Gantt control from Syncfusion. It has saved me many hours as well as stores our information more efficiently… now.
Marco Del Frate

Marco Del Frate

Tecnel SRL

double quotes

I am really thankful for the wonderful set of controls for WPF. I was able to deliver things on time and could focus on core business logic rather than control development.
Umair Ahmed

Umair Ahmed

Technical Lead at Vercom

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Scroll up icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon