예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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));
        }
예제 #3
0
        /// <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();
        }