[]
Represents GrapeCity.Windows.InputMan.Fields.MaskPatternField class which can filter input text based on pattern for GrapeCity.Windows.InputMan.GcMask.
public sealed class MaskPatternField : MaskField, IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize
Public NotInheritable Class MaskPatternField
Inherits MaskField
Implements IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize
MaskPatternField support following patterns:
Pattern | Description |
---|---|
\A | \A Upper case DBCS alphabet (A-Z). |
\a | \a Lower case DBCS alphabet (a-z). |
\D | \D Matches any DBCS decimal digit. Same as [0-9]. |
\B | \B Matches DBCS binary. Same as [0-1]. |
\X | \X Matches DBCS hexadecimal. Same as [0-9A-Fa-f]. |
\W | \W Matches any DBCS word character. It is same as [a-zA-Z_0-9]. |
\K | \K DBCS Katakana. |
\J | \J Hiragana. |
\Z | \Z All DBCS characters. |
\N | \N Matches DBCS big Katakana. |
\G | \G Matches DBCS big Hiragana. |
\T | \T Only surrogate char. |
\A | \A Matches any upper case alphabet [A-Z]. |
\a | \a Matches any lower case alphabet [a-z]. |
\D | \D Matches any decimal digit. Same as [0-9]. |
\B | \B Matches binary. Same as [0-1]. |
\X | \X Matches hexadecimal. Same as [0-9A-Fa-f]. |
\W | \W Matches any word character. It is same as [a-zA-Z_0-9]. |
\K | \K SBCS Katakana. |
\H | \H Matches all SBCS characters. |
\N | \N Matches all SBCS big Katakana. |
When user set AutoConvert to false, the field doesn't convert the text into valid chars.
Supported VisualState list:
VisualStateGroup Name | VisualState Name | Description |
---|---|---|
CommonStates | Normal | Represents the visual appearance when control is in normal state. |
CommonStates | Disabled | |
CommonStates | MouseOver | Represents the visual appearance when IsMouseOver is true. |
ActiveStates | Active | |
ActiveStates | Inactive | |
InputStates | Full | |
InputStates | Completed | Represents the visual appearance when IsCompleted is true. |
InputStates | Empty | |
InputStates | Part | Represents the visual appearance when IsFull, IsCompleted and IsEmpty all are false. |
ValidationStates | Valid | Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns false. |
ValidationStates | InvalidFocused | Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and control has focus. |
ValidationStates | InvalidUnfocused | Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and control has no focus. |
Name | Description |
---|---|
MaskPatternField() | Initializes a new instance of the MaskPatternField class. |
MaskPatternField(string, int, int) | Initializes a new instance of the MaskPatternField class. |
Name | Description |
---|---|
AutoConvertProperty | Identifies the GrapeCity.Windows.InputMan.Fields.MaskPatternField.AutoConvert dependency property. |
MaxLengthProperty | Identifies the GrapeCity.Windows.InputMan.Fields.MaskPatternField.MaxLength dependency property. |
MinLengthProperty | Identifies the GrapeCity.Windows.InputMan.Fields.MaskPatternField.MinLength dependency property. |
PatternProperty | Identifies the GrapeCity.Windows.InputMan.Fields.MaskPatternField.Pattern dependency property. |
PromptCharProperty | Identifies the GrapeCity.Windows.InputMan.Fields.MaskPatternField.PromptChar dependency property. |
Name | Description |
---|---|
AutoConvert | Gets or sets a value indicating whether MaskPatternField can auto convert. This is a dependency property. |
MaxLength | Gets or sets the maximum length of the MaskPatternField. This is a dependency property. |
MinLength | Gets or sets the minimum length of the MaskPatternField. This is a dependency property. |
Pattern | Gets the pattern of MaskPatternField. This is a dependency property. |
PromptChar | Gets or sets the prompt char of the field. This is a dependency property. |
Name | Description |
---|---|
Activate() | Attempts to activate current field and put caret to default caret position. |
EndInit() | Indicates that the initialization process for the element is complete. |