/// <summary> /// Handles changes to the IsIndeterminate property. /// </summary> /// <param name="d">SprocketControl</param> /// <param name="e">DependencyProperty changed event arguments</param> private static void OnIsIndeterminateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { SprocketControl target = (SprocketControl)d; bool oldIsIndeterminate = (bool)e.OldValue; bool newIsIndeterminate = target.IsIndeterminate; target.OnIsIndeterminateChanged(oldIsIndeterminate, newIsIndeterminate); }