Project/02 - Engine/LittleBigTools/UserControls/NumericUpDownTextBox.xaml.cs
/// <summary>
/// Will fix value only if the value is beyond what could be
/// a valid entry given more characters could be added to TextBox
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
Will fix value only if the value is beyond what could be
a valid entry given more characters could be added to TextBox
Will fix value only if the value is beyond what could be a valid entry given more characters could be added to TextBox
private bool FixValueKeyPress(int value)
        {
            if (value > MaxValue && MaxValue > 0)
            {
                UpdateText(MaxValue);
                return false;
            }
            else if (value < MinValue && MinValue < 0)
            {
                UpdateText(MinValue);
                return false;
            }
            return true;
        }
private bool FixValueKeyPress ( int value ) { if ( value > MaxValue && MaxValue > 0 ) { UpdateText ( MaxValue ) ; return false ; } else if ( value < MinValue && MinValue < 0 ) { UpdateText ( MinValue ) ; return false ; } return true ; }
Will fix value only if the value is beyond what could be
a valid entry given more characters could be added to TextBox
Will fix value only if the value is beyond what could be a valid entry given more characters could be added to TextBox
//Want to allow user to build a number with keystrokes // else: nothing to fix
None
value
int
None