Method ToggleExpandedAndKeepPosAndSelection
ToggleExpandedAndKeepPosAndSelection(TreeViewItem?)
Toggles the expanded state of the specified TreeViewItem while preserving the current scroll position and selection.
public virtual void ToggleExpandedAndKeepPosAndSelection(TreeViewItem? item)
Parameters
itemTreeViewItemThe TreeViewItem to toggle. If
null, no action is performed.