Beispiel #1
0
        public TreeViewDataItem(TreeViewDataItem parent, bool lazyLoadChildren)
        {
            _parent = parent;

            if (lazyLoadChildren)
            {
                Children.Add(DummyChild);
            }
        }
 public DirectoryTreeViewItem(string path, TreeViewDataItem parent, bool lazyLoadChildren)
     : base(parent, lazyLoadChildren)
 {
     FilePath = path;
     Text     = Path.GetFileNameWithoutExtension(FilePath);
     if (string.IsNullOrWhiteSpace(Text))
     {
         Text = FilePath;
     }
 }