Unplanned
Last Updated: 13 Jul 2018 08:57 by ADMIN
ADMIN
Pavel R. Pavlov
Created on: 13 Jun 2018 11:48
Category: MaskedInput
Type: Bug Report
0
MaskedInput: Regex mask uses Placeholders
Currently when regex is used and the InputValue is bound and the control is focused several placeholders are added. This is incorrect behavior. The placeholders should not be added at all in regex scenarios.

===========
Workaround: Set Placeholder property to "" (empty string)
2 comments
ADMIN
Yana
Posted on: 13 Jul 2018 08:57
Hi Vandana,

The Placeholder property is of type char and there is no such thing as an empty char. You need to parse the character you want to use for the placeholder.

For example, if you want the appearance of an empty space, then you can use a whitespace character:

Placeholder = char.Parse(" ")

If you wanted to use the Unicode "null" character, then that's the following:

Placeholder = '\0'

Hope this helps.

Regards,
Yana
Vandana
Posted on: 18 Jun 2018 18:09
I was trying to set the Placeholder property to empty string, but it doesn't accept that. It gives error, "String must be exactly one character long", and if I put a space ' ', I don't see the line but the cursor still stops even after the value, and it looks like there are bunch of spaces in the textbox