コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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();
        }