/// <summary> /// Updates the radial shadow. /// </summary> /// <param name="dependencyObject">The radial shadow border.</param> /// <param name="eventArgs">Dependency Property Changed Event Args</param> private static void RadialShadowSpread_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs) { RadialShadowBorder radialShadowBorder = (RadialShadowBorder)dependencyObject; radialShadowBorder.UpdateStops((double)eventArgs.NewValue); }
/// <summary> /// Updates the radial shadow. /// </summary> /// <param name="dependencyObject">The radial shadow border.</param> /// <param name="eventArgs">Dependency Property Changed Event Args</param> private static void RadialShadowColor_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs) { RadialShadowBorder radialShadowBorder = (RadialShadowBorder)dependencyObject; radialShadowBorder.UpdateShadowColor((Color)eventArgs.NewValue); }