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

            _children = new ObservableCollection<SourceControlItem>();

            if (lazyLoadChildren)
            {
                _children.Add(DummyChild);
            }
        }
コード例 #2
0
        protected TreeViewItemViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren)
        {
            _parent = parent;

            _children = new ObservableCollection <SourceControlItem>();

            if (lazyLoadChildren)
            {
                _children.Add(DummyChild);
            }
        }