Skip to content

TreeViewMarkupExtensions class

Generated fluent setters and event subscriptions for TreeView.

Guide: C# Markup guide

public static class TreeViewMarkupExtensions
name description
static ExpandTrigger(…) Sets which user interactions toggle node expansion.
static HorizontalScroll(…) Sets the horizontal scroll mode, Auto by default, so items wider than the viewport scroll horizontally.
static Indent(…) Sets the horizontal indentation per tree level.
static ItemHeight(…) Sets the height of each tree node row.
static ItemPadding(…) Sets the padding around each node’s text.
static OnSelectedIndicesChanged(…) Subscribes handler to SelectedIndicesChanged. Occurs when the set of selected rows changes (multi-select).
static SelectedItem(…) Sets the selected item as an object: the SelectedNode for TreeViewNode -based items, or the typed item for a TreeItemsView.
static SelectedNode(…) Sets the currently selected tree node.
static SelectionMode(…) Sets the selection mode; multi-selection needs an items source that supports it (e.g. TreeItemsView), otherwise the mode stays Single.