Hi,
My first thought from reading the code is that you are binding the "Mileage" property to ValueRangeTextBox.Text where this Text property is a string. So, the "value" received from the Validate method will always be a string.
In the LostFocus callback, you check the ValueRangeTextBox.Value property, which can be a Int64.
↧