private void all_account_Click(object sender, RoutedEventArgs e) { all_account newPage = new all_account(parent, this); pageTransitionControl.TransitionType = PageTransitionType.SlideAndFade; pageTransitionControl.ShowPage(newPage); }
public admin_frame(MainWindow root, int id) { parent = root; AdminId = id; InitializeComponent(); timer = new DispatcherTimer(); timer.Tick += new EventHandler(timer_tick); timer.Interval = new TimeSpan(0, 0, 2); timer.Start(); statusText.Foreground = Brushes.Yellow; statusCircle.Fill = Brushes.Yellow; statusText.Content = "Connecting to database"; loadAdminAccount(); all_account newPage = new all_account(parent, this); pageTransitionControl.TransitionType = PageTransitionType.Fade; pageTransitionControl.ShowPage(newPage); }