public static void Hide(this UIElement element, int duration, Action <UIElement> callback) { UIElementExtensions.SetOpacity(element, duration, 0.0d, (e) => { e.Visibility = Visibility.Collapsed; if (callback != null) { callback(e); } }); }
public static void Show(this UIElement element, int duration, Action <UIElement> callback) { element.Visibility = Visibility.Visible; UIElementExtensions.SetOpacity(element, duration, 1.0d, (e) => { if (callback != null) { callback(e); } }); }
public static void Animate(this UIElement element, string property, int duration, double value) { UIElementExtensions.Animate(element, property, duration, value, null); }
private static void SetOpacity(this UIElement element, int duration, double opacity, Action <UIElement> callback) { UIElementExtensions.Animate(element, "Opacity", duration, opacity, callback); }
public static void Hide(this UIElement element, int duration) { UIElementExtensions.Hide(element, duration, null); }
public static void Hide(this UIElement element) { UIElementExtensions.Hide(element, 0, null); }
public static void Show(this UIElement element, int duration) { UIElementExtensions.Show(element, duration, null); }
public static void Show(this UIElement element) { UIElementExtensions.Show(element, 0, null); }