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
ファイルを表示 Open project: JDolinger/Watchdog

Public Methods

Method 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 method

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

AttachError() public method

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

AttachError() public method

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.
return void

ClearAll() public method

Clears all errors from a field.
public ClearAll ( ) : void
return void

ClearError() public method

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.
return void

Field() public method

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