The minus sign on the NumPad
isn't considered as a valid input in a MaskedTextInput
control, while the dash key is considered as a valid input in a Mask="aaa"
. However, you can customize your MaskedTextInput
to add a dash in its value when the Substract
key is hit by handling the RadMaskedTextInput KedDown
private void RadMaskedTextInput_KeyDown(object sender, KeyEventArgs e)
if (e.Key == Key.Subtract)
(sender as RadMaskedTextInput).Value += "-";
(sender as RadMaskedTextInput).SelectionStart += 1;
Please give this a try and let me know if it works for you.
the Telerik team