protected TreeViewItemViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren) { Parent = parent; Children = new ObservableCollection <TreeViewItemViewModel>(); if (lazyLoadChildren) { Children.Add(DummyChild); } }
public AppElementViewModel(AppElement element, TreeViewItemViewModel parent) : base(parent, true) { _element = element; }