Method ToggleExpanded
ToggleExpanded(TreeControlItem?)
Toggles the expanded or collapsed state of the specified tree control item.
public virtual void ToggleExpanded(TreeControlItem? treeItem)
Parameters
treeItem
TreeControlItemThe TreeControlItem to toggle. If null or not a valid tree item, no action is taken.
Remarks
If the specified item has child items, this method switches its state between expanded and collapsed. It does not affect the state of child items.