예제 #1
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     BakersFrame.Navigate(typeof(AlbumArtistView), "Clear");
     BreadsFrame.Navigate(typeof(AlbumArtistView), "Clear");
     (this.FindName("BakersFrame") as Frame).Visibility = Visibility.Collapsed;
     (this.FindName("BreadsFrame") as Frame).Visibility = Visibility.Collapsed;
 }
예제 #2
0
 private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if ((sender as Pivot).SelectedIndex == 1)
     {
         (this.FindName("BreadsFrame") as Frame).Visibility = Visibility.Visible;
         BreadsFrame.Navigate(typeof(AlbumArtistView), "AlbumView");
     }
     else if ((sender as Pivot).SelectedIndex == 2)
     {
         (this.FindName("BakersFrame") as Frame).Visibility = Visibility.Visible;
         BakersFrame.Navigate(typeof(AlbumArtistView), "ArtistView");
     }
     else if ((sender as Pivot).SelectedIndex == 3)
     {
         (this.FindName("PlaylistsFrame") as Frame).Visibility = Visibility.Visible;
     }
 }