[]
        
(Showing Draft Content)

C1.WPF.C1ValidationDecorator

C1ValidationDecorator Class

Displays binding validation errors.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
[TemplateVisualState(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
public class C1ValidationDecorator : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
C1ValidationDecorator()

Initializes a new instance of a C1ValidationDecorator.

Fields

Name Description
CornerRadiusProperty

Identifies the CornerRadius dependency property.

TargetProperty

Identifies the Target dependency property.

ValidationStateProperty

Identifies the ValidationState dependency property.

Properties

Name Description
CornerRadius

Gets or sets a value that represents the degree to which the corners of the element are rounded.

Target

Gets or sets the target of the validation.

ValidationState

Gets or sets the ValidationState.

Methods

Name Description
ChangeVisualStateValidationStates(bool)

Updates the current visual state of the ValidationStates visual state group to match the object's properties.

OnApplyTemplate()

Builds the visual tree for the C1ValidationDecorator control when a new template is applied.

Extension Methods