VOOZH about

URL: https://www.syncfusion.com/maui-controls/maui-treeview

⇱ .NET MAUI TreeView | Hierarchical List | Syncfusion®


Bold BI®Unlock stunning dashboards with Bold BI® — 35+ widgets, 150+ data sources, AI agent & more.

Try it for free!
Find anything about our product, documentation, and more.

👁 Syncfusion Feedback

Build Faster with Syncfusion AI Coding Assistant & Agent Skills

.NET MAUI TreeView - High-Performance Tree List Control

  • Display hierarchical data, such as organizational structures and nested connections.
  • Customize TreeView nodes, expanders, and selections.
  • Create a hierarchical navigation UI using the unbound mode.
.NET 10 support now available

Trusted by the world’s leading companies

.NET MAUI maui treeview

Overview

The .NET MAUI TreeView control displays data in a tree structure. It allows users to expand and collapse nodes, bind data, create nodes, and customize the UI easily. It is optimized for smooth scrolling and efficient data reuse. It also supports different selection modes, complete UI customization, and MVVM commands for better performance.


.NET MAUI TreeView code example

Get started with the .NET MAUI TreeView using a few simple lines of XAML code, as demonstrated below. Also, explore this .NET MAUI TreeView example, which shows you how to render and configure the .NET MAUI TreeView.

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
 xmlns:syncfusion="clr-namespace:Syncfusion.Maui.TreeView;assembly=Syncfusion.Maui.TreeView"
 xmlns:treeviewengine="clr-namespace:Syncfusion.TreeView.Engine;assembly=Syncfusion.Maui.TreeView"
 x:Class="GettingStarted.MainPage">
 <ContentPage.Content>
 <syncfusion:SfTreeView x:Name="treeView">
 <syncfusion:SfTreeView.Nodes>
 <treeviewengine:TreeViewNode Content="Australia">
 <treeviewengine:TreeViewNode.ChildNodes>
 <treeviewengine:TreeViewNode Content="New South Wales"/>
 </treeviewengine:TreeViewNode.ChildNodes>
 </treeviewengine:TreeViewNode>
 <treeviewengine:TreeViewNode Content="United States of America">
 <treeviewengine:TreeViewNode.ChildNodes>
 <treeviewengine:TreeViewNode Content="New York"/>
 <treeviewengine:TreeViewNode Content="California"/>
 </treeviewengine:TreeViewNode.ChildNodes>
 </treeviewengine:TreeViewNode>
 </syncfusion:SfTreeView.Nodes>
 </syncfusion:SfTreeView>
 </ContentPage.Content>
</ContentPage>

Data binding

The .NET MAUI TreeView control allows users to utilize both ItemsSource binding and unbound mode for populating nodes. By populating nodes in unbound mode, it can easily be changed to a navigation control. When using the MVVM approach, all the relevant properties and commands of the .NET MAUI TreeView can be utilized.


Load on demand

The .NET MAUI TreeView control is designed to optimize performance by dynamically loading child items when a node is expanded. This on-demand loading approach reduces initial load times and memory usage, for a more responsive and efficient experience as users navigate through hierarchical data.


Custom template

The TreeView control allows users to customize tree nodes using images and custom views through templates. Customize each node, including parent and child nodes, by dynamically choosing a UI using a data template selector.


Selection

The TreeView enables item selection through programmatic and touch interactions. It offers single, single-deselect, multiple, extended, and none selection modes. It allows users to apply background colors to selected items, as well.


Sorting

The .NET MAUI TreeView control allows users to sort TreeView items to organize hierarchical data.


Drag and drop

Reorder items by dragging them with a long press. The control supports customizing the appearance of items while dragging them.


Checkboxes

The .NET MAUI TreeView control allows users to load a checkbox in each node, and toggle the checked and unchecked state of the nodes.


Expander position

Customize the placement and alignment of the expander view within tree nodes to better fit your design. Adjust the position of the expander icon to enhance usability and visual appeal.


Appearance

Expander customization

The .NET MAUI TreeView control offers an expander interface with adjustable sizing for creating a stylish appearance.

Item sizing

Modify the item height within the .NET MAUI TreeView control.

Indentation

Define the necessary indentation space for child nodes.


Interaction with nodes

  • Expand and collapse nodes using the expander, either programmatically or through user clicks.
  • Use events to manage user actions at the application level.
  • Utilize command properties to create MVVM-based applications.

Auto-size tree nodes

The control adjusts the tree node height automatically to enhance content readability. Users can also set the node height conditionally, including for just one level or node.


Right to left

The .NET MAUI TreeView component lets users adjust the text flow direction, allowing them to switch between left-to-right and right-to-left.




Struggling to decide on the right product?

Our comprehensive competitor comparison of .NET MAUI controls will guide you to the perfect choice.

👁 tick-mark
100+ UI controls
👁 tick-mark
200+ interactive .NET MAUI demos
👁 tick-mark
3.2M+ downloads

Not sure how to create your first .NET MAUI TreeView? Our tutorial videos and documentation can help.

I’d love to watch it now I’d love to read it now

Frequently Asked Questions

The Syncfusion® .NET MAUI TreeView component supports the following features:

  • Bind hierarchical data or manually add unbound tree nodes.
  • Select nodes through different selection modes and keyboard navigation.

  • Load child items dynamically through lazy loading when expanding the node.
  • Load a checkbox in each node and toggle their checked and unchecked states.

  • Work with a simple configuration and API.

  • Touch-friendly UI.
  • Extensive demos, documentation, and videos help get started quickly with the .NET MAUI TreeView control.

You can find our .NET MAUI TreeView demo, which demonstrates how to render and configure TreeView control.

The .NET MAUI TreeView is a hierarchical data control that enables the display of data in a tree-like structure. It supports features like data binding, selection, and custom templates for nodes.

There is no direct or built-in support for exporting TreeView data. Implement custom logic to export the data as JSON, XML, or Excel, depending on your application’s needs.

You can check/uncheck the corresponding nodes by adding the SfCheckBox control in ItemTemplate and binding TreeViewNode.IsChecked to the SfCheckBox.IsChecked property. Also, you can set or get the list of checked/unchecked items using the CheckedItems collection property.

No, this is a commercial product and requires a paid license. However, a free Community License is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

To bind data, set the hierarchical data collection to the ItemsSource property and define the child object name as ChildPropertyName. You can bind it in XAML or C#.

There are no built-in context menu options in the TreeView. You can add custom a context menu through ItemTapped, ItemRightTapped, or ItemLongPress events.

You can load the child nodes when the parent node is expanded by using the LoadOnDemandCommand property of TreeView. This feature is applicable for bound mode only.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.
Using the MAUI Components to improve the quality of our software offerings
The ease of use and documentation to get us going. Our customer have also given us good feedback on the components.
Philip D,
Operations Director, Small-Business
Migration Xamarin to MAUI
Clarity with MAUI upgrade and completeness as related to Xamarin as the predecessor.
Edward J R,
President, Small-Business

See Real Success Stories

Developers around the world trust Syncfusion’s Essential Studio to simplify complex projects and speed up delivery. With a vast library of UI controls, powerful SDKs, and reliable support, Essential Studio helps teams build enterprise-ready applications with confidence.

Read Our Customer Stories

Industry

Software development


75% Cost reduction

50% Faster development

👁 Customer review

“If somebody is looking for a great tool to work with? Yes. I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”

- Somnath Maji (Founder of Igniatek Consultancy)

Read Story

Industry

Utilities (oil and gas)


👁 450+ hours saved

450+ hours saved

Streamlined processes and hours of development effort saved.

👁 Flexible features

Advanced, flexible features

Empowered users through robust and versatile functionality.

👁 Customer review

“Syncfusion’s tools have taken care of many things so I can focus on developing the application, instead of developing tools for the application.”

- James Athyal (Software developer, McDaniel & Associates Consultants Ltd)

Read Story

Industry

Software and technology


👁 Time saving

1000+ of hours saved

Accelerated development with enterprise-ready UI components.

👁 File management

Efficient file management

Streamlined workflows with document libraries without building them from scratch.

👁 Customer review

“We really love when the magic happens.”

- Irvin Dominin (BUILDER WEB Development Manager at Sistemi)

Read Story

Industry

Software and technology


👁 Time saving

2 Years of delay avoided

Two years of delays prevented with proactive planning.

👁 On-time delivery

On-time delivery

Projects delivered on schedule using trusted controls.

👁 Customer review

“We are Syncfusion fans because of the way Syncfusion treats the support.”

- Dr. Howard Rybko (CEO of Synchrony Digital)

Read Story

Industry

IT services and IT consulting


👁 Improved performance

Improved performance

Large datasets handled with easy customization and quick debugging.

👁 Highly customizable

Highly customizable

Plug-and-play controls with quick template integration.

👁 Customer review

“I will surely recommend Syncfusion to others as a third-party control because I think it’s very easily customizable.”

- Jayesh (Technical Team Lead, Capita)

Read Story

Industry

Professional services


👁 Instant access

Instant access

Quick availability of features and resources.

👁 Reduced dependencies

Reduced dependencies

Fewer dependencies for faster development.

👁 Customer review

“We definitely wanted Syncfusion to help us with our document processing functionality, and we were happy with and satisfied with Syncfusion.”

- Arvind Naik (Engineering Lead, Vialto Partners)

Read Story


Rated by users across the globe

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.

👁 Up arrow icon
EXPLORE OUR PRODUCTS
FREE TOOLS
RESOURCES
GET PRODUCTS
UI Kits
SUPPORT
LEARNING
POPULAR .NET MAUI COMPONENTS
WHY WE STAND OUT
COMPANY
CONTACT US

CONTACT US

  • Fax: +1 919.573.0306
  • US: +1 919.481.1974
  • UK: +44 20 7084 6215
  • Toll Free (USA):
  • 1-888-9DOTNET