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); }
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); }
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); }
public static void From(ref Rectangle from) { Windows.UI.Xaml.Media.Animation.ConnectedAnimation animation = ConnectedAnimationService.GetForCurrentView().PrepareToAnimate(animate_back, from); }