Last Updated: 09 Mar 2018 06:59 by ADMIN
Dinko | Tech Support Engineer
Created on: 31 May 2016 08:36
Category: MaskedInput
Type: Bug Report
MaskedInput: When a mask (which has Mask="", SelectionOnFocus="SelectAll/CaretToEnd" properties set) is focused in code-behind/XAML and a back key is pressed the Text & Value properties are not update
A possible workaround is to subscribe to the PreviewKeyDown event of the mask then check if the back key is pressed and the whole text is select and set the value to null in order to erase the text of the mask.

private void maskTextInput_KeyDown(object sender, KeyEventArgs e)
	if (e.Key == Key.Back && this.maskTextInput.SelectionLength == this.maskTextInput.Text.Length)
		this.maskTextInput.Value = null;                 
1 comment
Posted on: 09 Mar 2018 06:59

The fix for the issue will be available in next LIB version (2018.1.312). It will also be included in our next official version – R2 2018, scheduled for the middle of May.

Best regards,
Ralitsa Kumanova