Tritium UI
TritiumTreeView
Show a hierarchy the user can expand, check, select, and reorder.
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.