Completed
Last Updated: 09 Mar 2018 06:59 by ADMIN
ADMIN
Dinko | Tech Support Engineer
Created on: 31 May 2016 08:36
Category: MaskedInput
Type: Bug Report
1
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
ADMIN
Ralitsa
Posted on: 09 Mar 2018 06:59
Hi,

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