protected override Size ArrangeOverride(Size arrangeBounds) { // Check whether the tree is too deep. try { ProperTreeView treeView = (ProperTreeView)_treeView.Target; if (treeView == null || !treeView.ApplyReduceDepthFilterIfNeeded(this)) { return(base.ArrangeOverride(arrangeBounds)); } } catch { } return(new Size(0, 0)); }
protected override Size MeasureOverride(Size constraint) { // Check whether the tree is too deep. try { ProperTreeView treeView = (ProperTreeView)_treeView.Target; if (treeView == null || !treeView.ApplyReduceDepthFilterIfNeeded(this)) { return(base.MeasureOverride(constraint)); } } catch { } return(new Size(0, 0)); }