|
<xforms:SfNumericTextBox |
|
private void SfNumericTextBox_Unfocused(object sender, FocusEventArgs e)
{
var minimum = 0; var maximum = 100;
var value = System.Convert.ToDouble(e.Value); if (!(value >= minimum && value <= maximum))
{
DisplayAlert("Alert", "Enter the value must be 0-100", "OK");
numericTextBox.Value = value <= minimum ? minimum : maximum;
}
} |