protected override void OnClear() { foreach (object obj in this) { DataTreeListViewItem dataTreeListViewItem = (DataTreeListViewItem)obj; dataTreeListViewItem.RemoveFromListView(); dataTreeListViewItem.ClearChildrenDataSources(); } }
private void Collapse() { if (!this.IsLeaf && !this.IsExpanded && this.ListView != null) { this.ListView.InternalOnCollapseItem(this); foreach (object obj in this.ChildrenItems) { DataTreeListViewItem dataTreeListViewItem = (DataTreeListViewItem)obj; dataTreeListViewItem.RemoveFromListView(); } } }
internal void RemoveFromListView() { this.isInListView = false; if (this.IsExpanded) { foreach (object obj in this.ChildrenItems) { DataTreeListViewItem dataTreeListViewItem = (DataTreeListViewItem)obj; dataTreeListViewItem.RemoveFromListView(); } } if (base.ListView != null) { base.ListView.Items.Remove(this); } }