Class RegexProperty
Validate using a regular expression
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.UI.MVC
Assembly: Simplic.UI.dll
Syntax
public class RegexProperty : ViewModelBase, IViewModelBase, INotifyPropertyChanged, IAsyncViewModel, IPropertyValidator
Properties
| Improve this Doc View SourceMessage
Gets the error message
Declaration
[Browsable(false)]
public IValidationErrorMessage Message { get; }
Property Value
Type | Description |
---|---|
IValidationErrorMessage |
Name
Gets the name of the validator
Declaration
[Browsable(false)]
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
RegexString
Gets or sets the regular expression
Declaration
public string RegexString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceValidate(Object)
Check whether a string is not null and does not only contains white spaces
Declaration
public bool Validate(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Value to check |
Returns
Type | Description |
---|---|
System.Boolean | True if value does not only contain white-spaces |
Implements
System.ComponentModel.INotifyPropertyChanged