public DocumentHierarchyTreeView(Widget parent, Node rootNode) { this.parent = parent; scrollView.Content.Layout = new VBoxLayout(); scrollView.Content.AddNode(root = new TreeNode(this, rootNode, null, JointType.LShaped, new List <Joint>(), 0, 0, isLast: true, string.Empty)); scrollView.AddChangeLateWatcher(() => scrollView.Parent, _ => { root.ForceFilter(); }); }
private void CreateWatchersToRebuild() { RootWidget.AddChangeLateWatcher(CalcSelectedRowsHashcode, _ => Rebuild()); }