New to Telerik UI for .NET MAUI? Start a free 30-day trial

Executes a custom regular expression to validate the current string value.

When a validation error occurs, the returned error message has the following general string format: "The field {0} is not in the correct format."

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class DataFormEditorRegexValidationRule : DataFormEditorPropertyValidationRule

Inheritance: objectDataFormValidationRuleDataFormEditorValidationRuleDataFormEditorPropertyValidationRuleDataFormEditorRegexValidationRule

Inherited Members DataFormEditorPropertyValidationRule.ErrorMessagePropertyDataFormEditorPropertyValidationRule.ErrorMessage

Constructors

C#
public DataFormEditorRegexValidationRule()

Fields

PatternProperty

BindableProperty

Identifies the Pattern property.

C#
public static readonly BindableProperty PatternProperty

Properties

Gets or sets a custom regular expression pattern to validate the current string value.

C#
public string Pattern { get; set; }