ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 3); // SDK >= 14393 /// <summary> /// Animates the gaussian blur of the the UIElement. /// </summary> /// <param name="associatedObject">The associated object.</param> /// <param name="value">The blur amount.</param> /// <param name="duration">The duration in milliseconds.</param> /// <param name="delay">The delay. (ignored if duration == 0)</param> /// <returns> /// An Animation Set. /// </returns> /// <seealso cref="IsBlurSupported" /> public static AnimationSet Blur( this FrameworkElement associatedObject, double value = 0d, double duration = 500d, double delay = 0d) { if (associatedObject == null) { return(null); } var animationSet = new AnimationSet(associatedObject); return(animationSet.Blur(value, duration, delay)); }
/// <summary> /// Animates the Gaussian blur of the UIElement. /// </summary> /// <param name="associatedObject">The associated object.</param> /// <param name="value">The blur amount.</param> /// <param name="duration">The duration in milliseconds.</param> /// <param name="delay">The delay. (ignored if duration == 0)</param> /// <param name="easingType">The easing function</param> /// <param name="easingMode">The easing mode</param> /// <returns> /// An Animation Set. /// </returns> public static AnimationSet Blur( this FrameworkElement associatedObject, double value = 0d, double duration = 500d, double delay = 0d, EasingType easingType = EasingType.Default, EasingMode easingMode = EasingMode.EaseOut) { if (associatedObject == null) { return(null); } var animationSet = new AnimationSet(associatedObject); return(animationSet.Blur(value, duration, delay, easingType, easingMode)); }