Example #1
0
        private void AdaptiveGridViewControl_ItemClick(object sender, ItemClickEventArgs e)
        {
            var          data          = ((InstaBroadcast)e.ClickedItem);
            GridViewItem itemAnimation = (GridViewItem)AdaptiveGridViewControl.ContainerFromItem(data);

            ConnectedAnimationService.GetForCurrentView().PrepareToAnimate("Poster", itemAnimation);
            MainPage.MainFrame.Navigate(typeof(StoryViewLive), data);
        }
Example #2
0
        private void AdaptiveGridViewControl_ItemClick(object sender, ItemClickEventArgs e)
        {
            News n = e.ClickedItem as News;

            //var animation = pre
            AdaptiveGridViewControl.PrepareConnectedAnimation("animation1", n, "UpdateItem");
            _storeditem = n;
            Frame.Navigate(typeof(DetailPage), n);
        }
Example #3
0
 private async void AdaptiveGridViewControl_Loaded(object sender, RoutedEventArgs e)
 {
     if (AdaptiveGridViewControl != null && App.refreshed)
     {
         AdaptiveGridViewControl.ScrollIntoView(_storeditem, ScrollIntoViewAlignment.Default);
         AdaptiveGridViewControl.UpdateLayout();
         ConnectedAnimation animation2 = ConnectedAnimationService.GetForCurrentView().GetAnimation("animation2");
         if (animation2 != null)
         {
             await AdaptiveGridViewControl.TryStartConnectedAnimationAsync(animation2, _storeditem, "UpdateItem");
         }
     }
 }