상속: INotifyPropertyChanged
예제 #1
0
        public StagesRootViewModel(TreeViewItemViewModel parent, IEnumerable<StageLinkInfo> stages)
            : base(parent)
        {
            _children = new ObservableCollection<TreeViewItemViewModel>(stages.Select(s => new StageTreeItemViewModel(this, s)));

            ViewModelMediator.Current.GetEvent<StageAddedEventArgs>().Subscribe(StageAdded);
        }
        protected TreeViewItemViewModel(TreeViewItemViewModel parent)
        {
            _parent = parent;

            _children = new ObservableCollection<TreeViewItemViewModel>();

            _isExpanded = true;
        }
예제 #3
0
 public StageTreeItemViewModel(TreeViewItemViewModel parent, StageLinkInfo stage)
     : base(parent)
 {
     _stage = stage;
 }
예제 #4
0
 public StageTreeItemViewModel(TreeViewItemViewModel parent, StageLinkInfo stage)
     : base(parent)
 {
     _stage = stage;
 }