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