TreeView - Demo Samples

This repository contains samples that demonstrate built-in functionalities of WinUI TreeView control.

  • Bring into View - This demo explains how to bring the tree node into view by scrolling in TreeView.
  • Checkbox with Bound mode - This demo explains customization of nodes with CheckBox using ItemTemplate that allows recursive checking of child nodes based on checkbox modes.
  • Checkbox with Unbound mode - This demo explains how to work with checkboxes in unbound mode in TreeView.
  • Getting Started - This demo explains the basic features of the TreeView with data binding using ObservableCollection, and also populating nodes directly.
  • ItemTemplateSelector - This demo explains how to customize tree nodes using data template selector in TreeView.
  • Level Based Styling - This demo explains how to customize the style of tree nodes based on its level using converter in TreeView.
  • LoadOnDemand - This demo explains the dynamic loading of child items in each level of hierarchy when the node is expanded using the load on demand support.
  • MVVM with Selection - This demo explains how to bind selected items in TreeView.
  • Performance - This demo explains the loading and scrolling performance of a TreeView with one million nodes.
  • Populating Nodes with Bound mode - This demo explains how to populate the TreeView with nodes using the ItemTemplate option.
  • Populating Nodes with Unbound mode - This demo explains how to populate the TreeView with nodes manually without using a data source.