private void Button_playInfo_Click(object sender, RoutedEventArgs e) { if ((Application.Current as App).homepage != null && (Application.Current as App).homepage.Frame.CanGoBack) { (Application.Current as App).homepage.Frame.GoBack(); } else { if (PlayingService.PlayingSong == null) { return; } Frame_all.Navigate(typeof(PlayingPage)); } }
private void MainPage_Loaded(object sender, RoutedEventArgs e) { Frame_all.Navigate(typeof(Home)); }