/// <summary> /// Updates the drop shadow. /// </summary> /// <param name="dependencyObject">The drop shadow border.</param> /// <param name="eventArgs">Dependency Property Changed Event Args</param> private static void DropShadowColor_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs) { DropShadowBorder dropShadowBorder = (DropShadowBorder)dependencyObject; dropShadowBorder.UpdateDropShadowColor((Color)eventArgs.NewValue); }
/// <summary> /// Updates the drop shadow. /// </summary> /// <param name="dependencyObject">The drop shadow border.</param> /// <param name="eventArgs">Dependency Property Changed Event Args</param> private static void DropShadowSpread_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs) { DropShadowBorder dropShadowBorder = (DropShadowBorder)dependencyObject; dropShadowBorder.UpdateStops(new Size(dropShadowBorder.ActualWidth, dropShadowBorder.ActualHeight)); }
/// <summary> /// Updates the drop shadow. /// </summary> /// <param name="dependencyObject">The drop shadow border.</param> /// <param name="eventArgs">Dependency Property Changed Event Args</param> private static void DropShadowAngle_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs) { DropShadowBorder dropShadowBorder = (DropShadowBorder)dependencyObject; dropShadowBorder.UpdateDropShadowPosition(); }