Пример #1
0
 public void BuildNode()
 {
     foreach (TreeViewNode curNode in Node.Children)
     {
         TreeViewNodeView nodeView = new TreeViewNodeView(curNode);
         nodeView.HeightRequest = 32d;
         LayoutChildrenStack.Children.Add(nodeView);
     }
     ResizeToFitContents();
 }
Пример #2
0
        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);
                }
            }
        }