Пример #1
0
        /// <summary>
        /// Updates the glow size.
        /// </summary>
        /// <param name="dependencyObject">The inner glow border.</param>
        /// <param name="eventArgs">Dependency Property Changed Event Args</param>
        private static void InnerGlowSize_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
        {
            InnerGlowBorder innerGlowBorder = (InnerGlowBorder)dependencyObject;

            innerGlowBorder.UpdateGlowSize((Thickness)eventArgs.NewValue);
        }
Пример #2
0
        /// <summary>
        /// Updates the inner glow color when the DP changes.
        /// </summary>
        /// <param name="dependencyObject">The inner glow border.</param>
        /// <param name="eventArgs">The new property event args.</param>
        private static void InnerGlowColor_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
        {
            InnerGlowBorder innerGlowBorder = (InnerGlowBorder)dependencyObject;

            innerGlowBorder.UpdateGlowColor((Color)eventArgs.NewValue);
        }