コード例 #1
0
        protected TreeViewItemViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren)
        {
            Parent = parent;

            Children = new ObservableCollection <TreeViewItemViewModel>();

            if (lazyLoadChildren)
            {
                Children.Add(DummyChild);
            }
        }
コード例 #2
0
 public AppElementViewModel(AppElement element, TreeViewItemViewModel parent)
     : base(parent, true)
 {
     _element = element;
 }