Beispiel #1
0
 public TransitionItem(TransitionsViewModel vm, Transition tr)
 {
     vm_ = vm;
     Transition = tr;
     EditCommand = new RelayCommand(() => { IsEditing = true; vm_.SelectedTransition = this; });
     FinishEditingCommand = new RelayCommand(() => IsEditing = false);
     RemoveCommand = new RelayCommand(Remove);
 }
Beispiel #2
0
 public TransitionPane(TransitionsViewModel model)
 {
     InitializeComponent();
     transitionsView.Bind(model);
 }
 public void Bind(TransitionsViewModel model)
 {
     model_ = model;
     DataContext = model;
 }