예제 #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);
 }
예제 #2
0
 public TransitionPane(TransitionsViewModel model)
 {
     InitializeComponent();
     transitionsView.Bind(model);
 }
예제 #3
0
 public void Bind(TransitionsViewModel model)
 {
     model_ = model;
     DataContext = model;
 }