Свойство | Type | Description | |
---|---|---|---|
ErrorMessageProperty | |||
RegexTextProperty |
Méthode | Description | |
---|---|---|
GetErrorMessage ( |
Returns the error message used when validation fails for the specified TextBox.
|
|
GetRegexText ( |
Returns the regular expression used to validate the specified TextBox.
|
|
SetErrorMessage ( |
Sets the error message used when validation fails for the specified TextBox.
|
|
SetRegexText ( |
Sets the regular expression used to validate the specified TextBox.
|
Méthode | Description | |
---|---|---|
GetRegexValidationRuleForTextBox ( |
Returns a RegexValidationRule to be used for validating the specified TextBox. If the TextBox is not yet initialized, this method returns null.
|
|
OnAttachedPropertyChanged ( |
Invoked whenever an attached property of the RegexValidator is modified for a TextBox.
|
|
RegexValidator ( ) : System | ||
VerifyRegexValidationRule ( |
Creates or modifies the RegexValidationRule in the TextBox's Text property binding to use the current values of the attached properties exposed by this class.
|
public static GetErrorMessage ( |
||
textBox | The TextBox whose error message is returned. | |
Résultat | string |
public static GetRegexText ( |
||
textBox | The TextBox whose regular expression is returned. | |
Résultat | string |
public static SetErrorMessage ( |
||
textBox | The TextBox being validated. | |
value | string | The error message. |
Résultat | void |
public static SetRegexText ( |
||
textBox | The TextBox being validated. | |
value | string | The regular expression. |
Résultat | void |
public static DependencyProperty,System.Windows ErrorMessageProperty | ||
Résultat |