C# Class Watchdog.Validation.Core.Internal.Field

Implementation of IField. It keeps track of handlers for each FrameworkElement that is attached to a field.
Inheritance: IField
Afficher le fichier Open project: JDolinger/Watchdog

Méthodes publiques

Méthode Description
AddElement ( FrameworkElement element ) : void

Associates a FrameworkElement with this field.

AttachError ( ConversionError e ) : void

Recreates a binding conversion error to a control.

AttachError ( ValidationError e ) : void

Attaches a ValidationError to this field. For each associated FrameworkElement, the list of concatened error messages is shown on the control.

ClearAll ( ) : void

Clears all errors from a field.

ClearError ( ValidationError e ) : void

Removes the given ValidationError from the field. If there are still some errors present, then the message is merely updated. If no more errors will be present, then the each FrameworkElement is cleared of errors.

Field ( ) : System.Collections.Generic

Initializes a new instance of the Field class.

Method Details

AddElement() public méthode

Associates a FrameworkElement with this field.
public AddElement ( FrameworkElement element ) : void
element System.Windows.FrameworkElement The control.
Résultat void

AttachError() public méthode

Recreates a binding conversion error to a control.
public AttachError ( ConversionError e ) : void
e ConversionError The e.
Résultat void

AttachError() public méthode

Attaches a ValidationError to this field. For each associated FrameworkElement, the list of concatened error messages is shown on the control.
public AttachError ( ValidationError e ) : void
e ValidationError The error.
Résultat void

ClearAll() public méthode

Clears all errors from a field.
public ClearAll ( ) : void
Résultat void

ClearError() public méthode

Removes the given ValidationError from the field. If there are still some errors present, then the message is merely updated. If no more errors will be present, then the each FrameworkElement is cleared of errors.
public ClearError ( ValidationError e ) : void
e ValidationError The error.
Résultat void

Field() public méthode

Initializes a new instance of the Field class.
public Field ( ) : System.Collections.Generic
Résultat System.Collections.Generic