New to Telerik UI for WPF? Start 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.

This class includes predefined regular expressions for validating specific input types, such as IP addresses (IP) and email addresses (Email).

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