private void JumptoScreening(LocalModels.Client addedClient) { ScreeningHome newPage = new ScreeningHome(addedClient.IDNo, addedClient); var a = Application.Current.MainWindow.FindName("pageTransitionControl") as PageTransition; a.ShowPage(newPage); }
private void btnScreening_Click(object sender, RoutedEventArgs e) { //AddNewClient home = new AddNewClient(); ScreeningHome home = new ScreeningHome(); pageTransitionControl.ShowPage(home); //Change Background btnNewClient.Background = Brushes.White; btnScreening.Background = Brushes.LightGray; btnFollowUp.Background = Brushes.White; button_Copy2.Background = Brushes.White; }