src/Foundation/Presentation/Gimela.Presentation.Controls/Controls/Sprocket/SprocketControl.cs
/// <summary>
/// Coerces the Progress value so that it stays in the range 0-100
/// </summary>
/// <param name="d">SprocketControl</param>
/// <param name="value">New Value</param>
/// <returns>Coerced Value</returns>
Coerces the Progress value so that it stays in the range 0-100
Coerces the Progress value so that it stays in the range 0 - 100
private static object CoerceProgress(DependencyObject d, object value)
    {
      double progress = (double)value;
      if (progress < 0.0)
      {
        return 0.0;
      }
      else if (progress > 100.0)
      {
        return 100.0;
      }
      return value;
    }
private static object CoerceProgress ( DependencyObject d , object value ) { double progress = ( double ) value ; if ( progress < 0.0 ) { return 0.0 ; } else if ( progress > 100.0 ) { return 100.0 ; } return value ; }
Coerces the Progress value so that it stays in the range 0-100
Coerces the Progress value so that it stays in the range 0 - 100
None
d
DependencyObject
None
value
object
None