Пример #1
0
        /// <summary>
        /// Handles changes to the TickWidth property.
        /// </summary>
        /// <param name="d">SprocketControl</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnTickWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SprocketControl target       = (SprocketControl)d;
            double          oldTickWidth = (double)e.OldValue;
            double          newTickWidth = target.TickWidth;

            target.OnTickWidthChanged(oldTickWidth, newTickWidth);
        }