Пример #1
0
        /// <summary>
        /// Handles changes to the Rotation property.
        /// </summary>
        /// <param name="d">SprocketControl</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnRotationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SprocketControl sprocket    = (SprocketControl)d;
            Direction       oldRotation = (Direction)e.OldValue;
            Direction       newRotation = sprocket.Rotation;

            sprocket.OnRotationChanged(oldRotation, newRotation);
        }