void image_Cancel_Tap(object sender, System.Windows.Input.GestureEventArgs e) { Storyboard1.AutoReverse = true; Storyboard1.Begin(); Storyboard1.SeekAlignedToLastTick(new TimeSpan(0, 0, 0, 0, 300)); // Storyboard1.SkipToFill(); control_Category.Visibility = Visibility.Collapsed; }