C# Класс Watchdog.Validation.Core.Internal.Field

Implementation of IField. It keeps track of handlers for each FrameworkElement that is attached to a field.
Наследование: IField
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AddElement() публичный Метод

Associates a FrameworkElement with this field.
public AddElement ( FrameworkElement element ) : void
element System.Windows.FrameworkElement The control.
Результат void

AttachError() публичный Метод

Recreates a binding conversion error to a control.
public AttachError ( ConversionError e ) : void
e ConversionError The e.
Результат void

AttachError() публичный Метод

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.
Результат void

ClearAll() публичный Метод

Clears all errors from a field.
public ClearAll ( ) : void
Результат void

ClearError() публичный Метод

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.
Результат void

Field() публичный Метод

Initializes a new instance of the Field class.
public Field ( ) : System.Collections.Generic
Результат System.Collections.Generic