void SwipeReleasePanel(StackPanel panel, SwipeReleaseEventArgs args) { var story = new Storyboard(); var transform = panel.RenderTransform as TranslateTransform; story.Children.Add(Utils.CreateDoubleAnimation(transform, "X", args.EasingFunc, args.ItemToX, args.Duration - 10)); story.Begin(); }
private void ItemSwipeBeginRestore(object sender, SwipeReleaseEventArgs args) { if (args.SwipeDirection == SwipeDirection.None) { return; } var panel = Getpanel(sender, args.SwipeDirection); SwipeReleasePanel(panel, args); }