protected override void OnBeforeExpand(NodeViewCancelEventArgs e) { // Do not raise a Navigated event for expanding nodes. _raiseNavigated = false; base.OnBeforeExpand(e); _raiseNavigated = true; }
protected override void OnBeforeCollapse(NodeViewCancelEventArgs e) { // Do not allow collapsing project nodes. if (e.Node is ProjectNode) { e.Cancel = true; } base.OnBeforeCollapse(e); }