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 Brush Next(ref object selected)
    {
        Rectangle rectangle = (Rectangle)selected;

        Current = (string)rectangle.Tag;
        Windows.UI.Xaml.Media.Animation.ConnectedAnimation animation =
            ConnectedAnimationService.GetForCurrentView().PrepareToAnimate(animate_next, rectangle);
        return(rectangle.Fill);
    }
Example #3
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);
    }
Example #4
0
 public static void From(ref Rectangle from)
 {
     Windows.UI.Xaml.Media.Animation.ConnectedAnimation animation =
         ConnectedAnimationService.GetForCurrentView().PrepareToAnimate(animate_back, from);
 }