public ActionViewModel(ActionListViewModel actionListViewModel)
 {
     var action = new Action();
     this.ActionListViewModel = actionListViewModel;
     this.Name = action.Name;
     this.AddActionCommand = new DelegateCommand<object>(this.OnAddAction, this.CanAddAction);
 }
Ejemplo n.º 2
0
        public ActionViewModel(ActionListViewModel actionListViewModel)
        {
            var action = new Action();

            this.ActionListViewModel = actionListViewModel;
            this.Name             = action.Name;
            this.AddActionCommand = new DelegateCommand <object>(this.OnAddAction, this.CanAddAction);
        }
 private void BindElements()
 {
     _actionListViewModel = new ActionListViewModel(_baseLayer);
     ActionListControl.DataContext = _actionListViewModel;
     ActionControl.DataContext = new ActionViewModel(_actionListViewModel);
 }
 void BindElements()
 {
     actionListViewModel = new ActionListViewModel(baseLayer);
     ActionListControl.DataContext = actionListViewModel;
 }