public static void Stop(FrameworkElement element) { SortAnimation animation = GetSortAnimation(element); if (animation != null) { animation._canceled = true; } element.ApplyAnimationClock(FrameworkElement.MarginProperty, null); }
public static void SetSortAnimation(FrameworkElement element, SortAnimation value) { element.SetValue(SortAnimationProperty, value); }