Set the showCheckboxes property to true and the TreeView will add checkboxes to each node.
When checkboxes are displayed, the TreeView manages their hierarchy so that when a checkbox is checked or cleared, the new value is automatically applied to all child nodes, and reflected on the state of the parent nodes.