Ejemplo n.º 1
0
        /// <summary>
        /// Updates the Perspective shadow.
        /// </summary>
        /// <param name="dependencyObject">The Perspective shadow border.</param>
        /// <param name="eventArgs">Dependency Property Changed Event Args</param>
        private static void PerspectiveShadowSpread_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
        {
            PerspectiveShadowBorder perspectiveShadowBorder = (PerspectiveShadowBorder)dependencyObject;

            perspectiveShadowBorder.UpdateStops(new Size(perspectiveShadowBorder.ActualWidth, perspectiveShadowBorder.ActualHeight));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Updates the Perspective shadow.
        /// </summary>
        /// <param name="dependencyObject">The Perspective shadow border.</param>
        /// <param name="eventArgs">Dependency Property Changed Event Args</param>
        private static void PerspectiveShadowAngle_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
        {
            PerspectiveShadowBorder perspectiveShadowBorder = (PerspectiveShadowBorder)dependencyObject;

            perspectiveShadowBorder.UpdateShadowAngle((double)eventArgs.NewValue);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Updates the Perspective shadow.
        /// </summary>
        /// <param name="dependencyObject">The Perspective shadow border.</param>
        /// <param name="eventArgs">Dependency Property Changed Event Args</param>
        private static void PerspectiveShadowColor_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
        {
            PerspectiveShadowBorder perspectiveShadowBorder = (PerspectiveShadowBorder)dependencyObject;

            perspectiveShadowBorder.UpdatePerspectiveShadowColor((Color)eventArgs.NewValue);
        }