title: Can we set minimum value for FrameworkPropertyMetadata default value
body: <p>Here is the code:</p>
  
  <pre><code>new FrameworkPropertyMetadata( (uint) 100,...
  </code></pre>
  
  <p>We can set in max value here as 100, is there a way to set minimum value too? Let's say I want this default value to be between 5 and 100? I looked all over Google did not find any answers. Can anybody please suggest a solution. Thanks!</p>
  
  <p>Code tried according to Reed Copsey</p>
  
  <pre><code>public static bool IsValidReading(object value)
  {
      uint v = (uint)value;
      return (!v.Equals(0));
  }
  </code></pre>
  
  <p>Full code:</p>
  
  <pre><code>public static readonly DependencyProperty Result =
              DependencyProperty.Register(
                  "ResultLimit", typeof( uint ), typeof( UI ),
                  new FrameworkPropertyMetadata( ( uint )10, new PropertyChangedCallback( ResultChanged ) ), IsValidReading );
  </code></pre>