/// <summary> /// Updates the drop shadow. /// </summary> /// <param name="dependencyObject">The drop shadow text block.</param> /// <param name="eventArgs">Dependency Property Changed Event Args</param> private static void DropShadowOpacity_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs) { DropShadowTextBlock dropShadowTextBlock = (DropShadowTextBlock)dependencyObject; dropShadowTextBlock.UpdateDropShadowBrush(); }
/// <summary> /// Updates the drop shadow. /// </summary> /// <param name="dependencyObject">The drop shadow text block.</param> /// <param name="eventArgs">Dependency Property Changed Event Args</param> private static void DropShadowAngle_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs) { DropShadowTextBlock dropShadowTextBlock = (DropShadowTextBlock)dependencyObject; dropShadowTextBlock.UpdateDropShadowPosition(); }