Extended Toolkit
Extended Toolkit
(In Visual
Studio).
2. Run this Command (without double-quotes) "Install-Package Extended.Wpf.Toolkit"
. (Extended Wpf Toolkit will be installed and added to your project).
3. Add a using statement ("using Xceed.Wpf.Toolkit;") to the top of .cs file.
4. Add a new xmlns (for example
xmlns:wpfx="http://schemas.xceed.com/wpf/xaml/toolkit" to the top of XAML files .
Mask
Element
Description
Digit, required. This element will accept any single digit between 0 and 9.
&
Digit or space, optional. If this position is blank in the mask, it will be rendered
as a space in the Text property. Plus (+) and minus (-) signs are allowed.
Letter, required. Restricts input to the ASCII letters a-z and A-Z. This mask
element is equivalent to [a-z A-Z] in regular expressions.
Letter, optional. Restricts input to the ASCII letters a-z and A-Z. This mask
element is equivalent to [a-z A-Z]? in regular expressions.
Character, required. If the Ascii Only property is set to true, this element
behaves like the "L" element.
Character, optional. Any non-control character. If the Ascii Only property is set to
true, this element behaves like the "?" element.
Alphanumeric, optional. If the Ascii Only property is set to true, the only
characters it will accept are the ASCII letters a-z and A-Z.
Alphanumeric, optional. If the Ascii Only property is set to true, the only
characters it will accept are the ASCII letters a-z and A-Z.
Decimal placeholder. The actual display character used will be the decimal
.
Thousands placeholder. The actual display character used will be the thousands
,
Time separator. The actual display character used will be the time symbol
:
Date separator. The actual display character used will be the date symbol
/
Currency symbol. The actual character displayed will be the currency symbol
$
<
>
Escape. Escapes a mask character, turning it into a literal. "\\" is the escape
sequence for a backslash.