private async void MainPage_Loaded(object sender, RoutedEventArgs e) { Main_Frame.Navigate(typeof(MusicListPage)); await Ioc.Default.GetRequiredService <PlaybackListManageService>().InitPlayList(); await Ioc.Default.GetRequiredService <MusicFileScanningService>().ScanAsync(); }
public MainWindow() { InitializeComponent(); _patientsPage = new PatientsPage(); _doctorsPage = new DoctorsPage(); _appointmentsPage = new AppointmentsPage(); Main_Frame.Navigate(_patientsPage); }
public MainWindow(object context) { DataContext = context; page_Deck_Edit = new Deck_Edit(context); page_Landing = new Landing(context); page_Templates = new Templates(context); InitializeComponent(); Main_Frame.Navigate(page_Landing); }
private void CustomPlayerElement_CoverButtonClick(object sender, RoutedEventArgs e) { if (Main_Frame.CurrentSourcePageType == typeof(MusicInfoPage)) { Main_Frame.GoBack(); } else { Main_Frame.Navigate(typeof(MusicInfoPage)); } }
public void Navigate(PageModel pm) { if (Main_Frame.SourcePageType == pm.PageType) { return; } Main_Frame.Navigate(pm.PageType, pm.Title); Main_Frame.BackStack.Clear(); Main_Frame.ForwardStack.Clear(); Back_Button.Visibility = Visibility.Collapsed; Title_TextBlock.Margin = new Thickness(); }
private void But_Templates_Click(object sender, RoutedEventArgs e) { Main_Frame.Navigate(page_Templates); }
private void Button_Click_1(object sender, RoutedEventArgs e) { Main_Frame.Navigate(page_Landing); }
private void Button_Click(object sender, RoutedEventArgs e) { Main_Frame.Navigate(page_Deck_Edit); }
private void Settings_DockButton_Click(object sender, RoutedEventArgs e) { Main_Frame.Navigate(new Uri("SettingsPage.xaml", UriKind.Relative)); }
private void WeekMeal_DockButton_Click(object sender, RoutedEventArgs e) { Main_Frame.Navigate(new Uri("WeekPage.xaml", UriKind.Relative)); }
public MainWindow() { InitializeComponent(); Main_Frame.Navigate(new Uri("TodayPage.xaml", UriKind.Relative)); }
private void Appointments_Button_Click(object sender, RoutedEventArgs e) { Main_Frame.Navigate(_appointmentsPage); }
private void Doctors_Button_Click(object sender, RoutedEventArgs e) { Main_Frame.Navigate(_doctorsPage); }
private void Patients_Button_Click(object sender, RoutedEventArgs e) { Main_Frame.Navigate(_patientsPage); }