I have a RadNumericUpDown control, with default value of 0.00; but I would like to do the following: when the user clicks in it: the cursor position is placed at the beginning and when the user types, it overwrites the value.
Can this be achieved?
EDIT: in fact what I want is to put the RadNumericUpDown in overwrite mode. Can this be done?
EDIT 2: for now I found this workaround,which puts it in overwrite model:
Can this be achieved?
EDIT: in fact what I want is to put the RadNumericUpDown in overwrite mode. Can this be done?
EDIT 2: for now I found this workaround,which puts it in overwrite model:
private bool _lengthInputInsertActivated = false;
private void LengthNumericUpDown_GotFocus(object sender, RoutedEventArgs e)
{
if (!_lengthInputInsertActivated)
{
KeyEventArgs e1 = new KeyEventArgs(Keyboard.PrimaryDevice, Keyboard.PrimaryDevice.ActiveSource, 0, Key.Insert);
e1.RoutedEvent = Keyboard.KeyDownEvent;
InputManager.Current.ProcessInput(e1);
_lengthInputInsertActivated = true;
}
}