Edit

TextBoxExtensions.SetRegex(TextBox, String) Method

Definition

Sets the value of the TextBoxRegex.Regex XAML attached property for a target TextBox.

public static void SetRegex(Microsoft.UI.Xaml.Controls.TextBox textBox, string value);
static member SetRegex : Microsoft.UI.Xaml.Controls.TextBox * string -> unit
Public Shared Sub SetRegex (textBox As TextBox, value As String)

Parameters

textBox
Microsoft.UI.Xaml.Controls.TextBox

The TextBox to set the regular expression on

value
String

Regex value

Applies to