示例#1
0
        private void AlbumWrapper_Tapped(object sender, TappedRoutedEventArgs e)
        {
            var tappedAlbum = (sender as Grid).DataContext as Album;

            GlobalVariables.CurrentAlbum = tappedAlbum;
            CommonNavigationTransitionInfo infoOverride = new CommonNavigationTransitionInfo();

            Frame.Navigate(typeof(AlbumPage), null, infoOverride);
        }
示例#2
0
        private void AddFlyout(SettingsFlyout settingsFlyout)
        {
            var pivotItem = new PivotItem()
            {
                Header  = settingsFlyout.Title,
                Content = settingsFlyout,
            };

            CommonNavigationTransitionInfo.SetIsStaggerElement(pivotItem, true);
            pivot.Items.Add(pivotItem);
        }
示例#3
0
        private void btnGotoCommonNavigationTransitionInfo_Click2(object sender, RoutedEventArgs e)
        {
            CommonNavigationTransitionInfo commonTransition = new CommonNavigationTransitionInfo();

            this.Frame.Navigate(typeof(MyFrame), commonTransition);
        }
示例#4
0
 private void AlbumWrapper_Tapped(object sender, TappedRoutedEventArgs e)
 {
     var tappedAlbum = (sender as Grid).DataContext as Album;
     GlobalVariables.CurrentAlbum = tappedAlbum;
     CommonNavigationTransitionInfo infoOverride = new CommonNavigationTransitionInfo();
     Frame.Navigate(typeof(AlbumPage), null, infoOverride);
 }