MaskedTextBox without literals

Editors for WPF Forum

Posted 10 years ago by Henrique Duarte
Avatar
Hi,

How can I get and bind the text without the literal parts?
Mask = "###.###.###-##"
DB Value = "###########"

Regards,

Henrique

Comments (5)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Henrique,

We don't currently have a property that allows you to get the text without the literals. I've put your request on the TODO list and hopefully we can addressed before WPF Studio 5.0 is out.


Actipro Software Support

Posted 10 years ago by Henrique Duarte
Avatar
Can you tell me if this feature will be included on WPF Studio 5?
When this next version will be available?

Best regards,

Henrique
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Henrique,

This feature most likely will not make it in, as we are trying to get WPF Studio 5.0 out in the next couple of days.

There are some additional cases we need to work out before implementing this feature. In your example, what is considered a "literal" is easy to identify. Since our mask supports a simple regular expression there can be things like "(1\d|2\d)". In that case, the "1" and "2" are technically literals, but are required in order to choose the correct branch. What are your thoughts on this case?

Keep in mind that there can be hidden "branches". So in your example, if you had "###?.###.###-##", then again the "." is a literal but would be needed to choose the "branch" that only requires 2 digits before the first ".".


Actipro Software Support

Posted 10 years ago by Crile Carvey
Avatar
Hello,

Any update on this? Would be nice to have...

Anybody have some good workarounds?

We just want to use this for currency at the moment.

Thanks, Crile

[Modified at 09/22/2009 01:02 PM]
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Crile,

This has not been implemented yet. We will post a reply to the forum when we do.

On a side note, you may be better off using the DoubleEditBox, if you are only concerned about currency. The DoubleEditBox is able to diplay it's value using the currency format and would allow you to work with just the underying double values.


Actipro Software Support

The latest build of this product (v2019.1 build 0682) was released 30 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.