public void BuildNode() { foreach (TreeViewNode curNode in Node.Children) { TreeViewNodeView nodeView = new TreeViewNodeView(curNode); nodeView.HeightRequest = 32d; LayoutChildrenStack.Children.Add(nodeView); } ResizeToFitContents(); }
private void BuildTree() { LayoutRoot.Children.Clear(); if (Nodes != null) { foreach (TreeViewNode curNode in Nodes) { AttachTreeToNode(curNode); TreeViewNodeView nodeView = new TreeViewNodeView(curNode); nodeView.HeightRequest = 32d; LayoutRoot.Children.Add(nodeView); } } }