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

This class represents a helper which allows different ways for the Validation.ErrorTemplate to be shown.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public static class ValidationErrorTemplateHelper

Inheritance: objectValidationErrorTemplateHelper

Fields

DisplayModeProperty

DependencyProperty

Identifies the DisplayModeProperty for the ValidationErrorTemplate. This is an attached property.

C#
public static readonly DependencyProperty DisplayModeProperty

ShowWhenFocusedProperty

DependencyProperty

Identifies the ShowWhenFocused attachable property.

C#
[Obsolete("This property is obsolete. Use the DisplayMode property.")]
public static readonly DependencyProperty ShowWhenFocusedProperty

Methods

Gets the DisplayMode for the ValidationErrorTemplate.

C#
public static ValidationErrorTemplateDisplayMode GetDisplayMode(DependencyObject d)
Parameters:dDependencyObjectReturns:

ValidationErrorTemplateDisplayMode

Gets the ShowWhenFocused.

C#
[Obsolete("This property is obsolete. Use the DisplayMode property.")]
public static bool GetShowWhenFocused(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Sets the DisplayMode.

C#
public static void SetDisplayMode(DependencyObject d, ValidationErrorTemplateDisplayMode value)
Parameters:dDependencyObjectvalueValidationErrorTemplateDisplayMode

Sets the ShowWhenFocused.

C#
[Obsolete("This property is obsolete. Use the DisplayMode property.")]
public static void SetShowWhenFocused(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool