TextBoxExtensions.SetIsValid(TextBox, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.