Skip to main content

Node Link Mode

In TreeView, nodes represent navigation elements (links). For nodes, you can activate a specific link mode in which only certain node elements are clickable. To accomplish this, use the TreeViewSettings.NodeLinkMode property.

Options include:

  • TextOnly. Only a node’s text is clickable.
  • TextAndImage. Only a node’s text and image are clickable.
  • ContentBounds. The entire node’s content is clickable.

To customize appearance settings, use the TreeViewSettings.Styles.Link (for TextOnly and TextAndImage modes) and TreeViewSettings.Styles.Node.HoverStyle (for ContentBounds mode) properties.

The image below shows two TreeViews in two link modes - ContentBounds and TextOnly.

TreeView - NodeLinkMode