TextBoxExtensions.SetIsValid(TextBox, Boolean) Method

Definition

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

public static void SetIsValid (Windows.UI.Xaml.Controls.TextBox textBox, bool value);
static member SetIsValid : Windows.UI.Xaml.Controls.TextBox * bool -> unit
Public Shared Sub SetIsValid (textBox As TextBox, value As Boolean)

Parameters

textBox
Windows.UI.Xaml.Controls.TextBox

TextBox to be assigned the property

value
Boolean

A value indicating if the Text is valid according to the Regex property.

Applies to