Example #1
0
 public static void Loaded(ref Rectangle rectangle)
 {
     Windows.UI.Xaml.Media.Animation.ConnectedAnimation animation =
         ConnectedAnimationService.GetForCurrentView().GetAnimation(animate_next);
     rectangle.Opacity = 1;
     animation?.TryStart(rectangle);
 }
Example #2
0
    public static void Back(ref ListView listview)
    {
        Rectangle rectangle = (Rectangle)listview.Items
                              .SingleOrDefault(f => ((Rectangle)f).Tag.Equals(Current));

        Windows.UI.Xaml.Media.Animation.ConnectedAnimation animation =
            ConnectedAnimationService.GetForCurrentView().GetAnimation(animate_back);
        animation?.TryStart(rectangle);
    }