private void mydatagrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int i = mydatagrid.SelectedIndex;

            if (i >= 0 && i < mydatagrid.Items.Count - 1)
            {
                var id = dt.Rows[i]["IDNo"].ToString();
                ScreeningHome newPage = new ScreeningHome(id);
                var a = Application.Current.MainWindow.FindName("pageTransitionControl") as PageTransition;
                a.ShowPage(newPage);
            }
        }
 private void btnScreening_Click(object sender, RoutedEventArgs e)
 {
     ScreeningHome home = new ScreeningHome();
     pageTransitionControl.ShowPage(home);
 }