Tritium UI

TritiumTreeView

Show a hierarchy the user can expand, check, select, and reorder.

TritiumTreeView

Key features

  • Bind a tree with a children property path, or load children when a node expands.
  • Select nothing, one node, or many.
  • Show checkboxes and read the checked items.
  • Supply an item template, or display one property of each object.
  • Drag to reorder siblings or drop a node onto a new parent.
  • Expand and collapse from code, and listen for both.
  • Hear NodeReordered and NodeReparented, including when your list is immutable and you must apply the move yourself.

Platforms

Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).

Main API

  • ItemsSource . The root nodes.
  • ChildrenPath . Property that returns a node's children.
  • SelectionMode . None, single, or multiple.
  • LoadChildren . Raised on expand when LoadChildrenOnExpand is true; set Children on the event args.

Basic example

Declare this namespace on the page.

xmlns:tree="clr-namespace:Tritium.Maui.TreeView;assembly=Tritium.Maui.TreeView"
<tree:TritiumTreeView ItemsSource="{Binding Roots}"
                   ChildrenPath="Children"
                   DisplayMemberPath="Name"
                   SelectionMode="Single"
                   IsCheckBoxVisible="True" />

Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.

Ask Tritium

How-to help and product fit for FleetPro, Tritium UI, and Tritium Reporting.

Ask how to use a feature, or tell us your company, platforms, team size, and use case. Pricing and upgrades go to sales.

Product fit
Contact sales

Search the FAQ