private void MainFlip_Tapped(object sender, TappedRoutedEventArgs e) { item_ = (e.OriginalSource as FrameworkElement)?.DataContext as Items; var type_in = ItemAccess.FileType_check(item_.StorageFile_); switch (type_in) { case "Picture": { ConnectedAnimation animation = ConnectedAnimationService.GetForCurrentView().PrepareToAnimate("forwardAnimation", MainFlip); Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.Graphics), item_, new SuppressNavigationTransitionInfo()); break; } case "Video": { ConnectedAnimation animation = ConnectedAnimationService.GetForCurrentView().PrepareToAnimate("forwardAnimation", MainFlip); Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.MediaPage), item_, new SuppressNavigationTransitionInfo()); break; } case "Music": { ConnectedAnimation animation = ConnectedAnimationService.GetForCurrentView().PrepareToAnimate("forwardAnimation_mc", MUSIC); Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.AudioPage), item_, new SuppressNavigationTransitionInfo()); /*Frame.Navigate(typeof(Pages.AudioPage), item_in, new SuppressNavigationTransitionInfo());*/ break; } default: { Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.ItemPage), item_, new SuppressNavigationTransitionInfo()); break; } } }
private void Source__ItemClick(object sender, ItemClickEventArgs e) { // ItemAccess.NeedNav = "Doc"; var item_in = (Items)e.ClickedItem; var type_in = ItemAccess.FileType_check(item_in.StorageFile_); switch (type_in) { case "Picture": { Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.Graphics), item_in, new DrillInNavigationTransitionInfo()); break; } case "Video": { Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.MediaPage), item_in, new DrillInNavigationTransitionInfo()); break; } case "Music": { Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.AudioPage), item_in, new DrillInNavigationTransitionInfo()); break; } default: { Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.ItemPage), item_in, new DrillInNavigationTransitionInfo()); break; } } }
private void Source__ItemClick(object sender, ItemClickEventArgs e) { // ItemAccess.NeedNav = "All_New"; item_ = (Items)e.ClickedItem; var type_in = ItemAccess.FileType_check(item_.StorageFile_); switch (type_in) { case "Picture": { var contatiner = Source_.ContainerFromItem(e.ClickedItem) as GridViewItem; if (contatiner != null) { var temp = contatiner.Content as Items; Source_.PrepareConnectedAnimation("forwardAnimation", temp, "CoverIMG"); // MUSIC.PrepareConnectedAnimation //("forwardAnimation", temp, "MusicSourceImg"); } Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.Graphics), item_, new SuppressNavigationTransitionInfo()); break; } case "Video": { var contatiner = Source_.ContainerFromItem(e.ClickedItem) as GridViewItem; if (contatiner != null) { var temp = contatiner.Content as Items; Source_.PrepareConnectedAnimation("forwardAnimation", temp, "CoverIMG"); // MUSIC.PrepareConnectedAnimation //("forwardAnimation", temp, "MusicSourceImg"); } Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.MediaPage), item_, new SuppressNavigationTransitionInfo()); break; } case "Music": { var contatiner = Source_.ContainerFromItem(e.ClickedItem) as GridViewItem; if (contatiner != null) { var temp = contatiner.Content as Items; Source_.PrepareConnectedAnimation("forwardAnimation_mc", temp, "CoverIMG"); Source_.PrepareConnectedAnimation("forwardAnimation_mcinfo", temp, "infoStackPanel"); // MUSIC.PrepareConnectedAnimation //("forwardAnimation", temp, "MusicSourceImg"); } Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.AudioPage), item_, new SuppressNavigationTransitionInfo()); //Frame.Navigate(typeof(Pages.AudioPage), item_in, new SuppressNavigationTransitionInfo()); break; } default: { Frame frame = Window.Current.Content as Frame; frame.Navigate(typeof(Pages.ItemPage), item_, new SuppressNavigationTransitionInfo()); break; } } }