public PagelistTreeViewModel() { _model = PagelistTreeModel.GetInstance(); _model.LoadPageTree(); this.SelectPageCommand = new DelegateCommand <object>(SelectPageExecute); searchPageName = String.Empty; }
public InteractionTabVM() { _ListEventAggregator.GetEvent <SelectionChangeEvent>().Subscribe(SelectionChangeEventHandler); _ListEventAggregator.GetEvent <UpdatePageTreeEvent>().Subscribe(UpdatePageTreeEventHandler); _ListEventAggregator.GetEvent <UpdateLanguageEvent>().Subscribe(UpdateLanguageHandler); _model = PagelistTreeModel.GetInstance(); LinkPageCommand = new DelegateCommand <object>(LinkPageExecute); MouseOverObjectCommand = new DelegateCommand <IUniqueObject>(MouserOverObjectExecute); MouseLeaveObjectCommand = new DelegateCommand <object>(MouseLeaveOjectExecute); WidgetList = new RangeObservableCollection <WidgetNode>(); }