public ActionViewModel(ActionListViewModel actionListViewModel) { var action = new Action(); this.ActionListViewModel = actionListViewModel; this.Name = action.Name; this.AddActionCommand = new DelegateCommand<object>(this.OnAddAction, this.CanAddAction); }
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; }