Where can I find a free masked TextBox in WPF?


Question

Do you know any freely available WPF component for using masks (regex) in textbox?

1
16
1/26/2009 7:58:22 PM

Accepted Answer

I think you will find what you need in this control library: http://www.codeplex.com/WPFDeveloperTools

Look for 'FilteredTextBox' amongst all the other useful controls. I don't think it does regex, but it should be able to filter just about everything you need, and since you will have the source, you should find it easy to enhance.

As a bonus, it is free and open source on CodePlex.

You can also find a nice blog post about how to go about implementing this yourself here: http://marlongrech.wordpress.com/2007/10/28/masked-textbox/

20
1/26/2009 7:57:50 PM

Extended WPF Toolkit has a MaskedTextBox similar to the one that was in WinForms. As with the old one, this doesn't actually support RegExes, but has a subset of useful masks.

Oh, and it's on NuGet, which is nice.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon