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