Esempio n. 1
0
        void AddTreeViewItem(ItemCollection collection, TreeViewItemInfo info)
        {
            RichEditTreeViewItem item = new RichEditTreeViewItem(info);

            item.Header    = GetTreeViewItemHeader(info.Element, collection.Count + 1);
            item.Expanded += OnTreeViewItemExpanded;
            item.Selected += OnTreeViewItemSelected;
            collection.Add(item);
        }
Esempio n. 2
0
 public RichEditTreeViewItem(TreeViewItemInfo info)
 {
     this.info = info;
     if (info.HasChildNodes)
     {
         Items.Add(new TreeViewItem()
         {
             Header = "Loading..."
         });
     }
 }
Esempio n. 3
0
 public ChildElementsCollector(TreeViewItemInfo parentElement)
 {
     this.collection    = new List <TreeViewItemInfo>();
     this.parentElement = parentElement;
     Visit(ParentElement.Element);
 }