New to Telerik UI for WPFStart a free 30-day trial

Provides utility methods and constants used in the RadMaskedTextInput for validating common input formats, such as IP addresses and email addresses.

Definition

Namespace:Telerik.Windows.Controls.MaskedInput

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public static class ValidationHelper

Inheritance: objectValidationHelper

Fields

Identifies the DisplayValidationErrors dependency property. When set to true, the validation error will be always displayed. By default is false - only if the Mask property is data bound the validation error will visually appear.

C#
public static readonly DependencyProperty DisplayValidationErrorsProperty

Gets Regex string matching an Email input.

C#
public static readonly string Email

Gets Regex string matching an IP input.

C#
public static readonly string IP

Methods

Gets the value of DisplayValidationErrors attached property.

C#
public static bool GetDisplayValidationErrors(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Sets the value of DisplayValidationErrors attached property.

C#
public static void SetDisplayValidationErrors(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool