private void btnNewSprint_Click(object sender, RoutedEventArgs e) { CreateEditSprint ces = new CreateEditSprint(); ces.Show(); SprintBoardViewModel sbvm2 = new SprintBoardViewModel(); ces.DataContext = sbvm2; }
public Board(string sprintName) { InitializeComponent(); this.sprintName = sprintName; sbvm = new SprintBoardViewModel(); sbvm.ReadInData(sprintName); this.DataContext = sbvm; //task1.DataContext = sbvm; }
public void SetupDataContext(SprintBoardViewModel sbvm) { this.DataContext = sbvm; }