C# Class PaulStovell.TrialBalance.UserInterface.Validation.TextBoxErrorDisplayStrategy

An error displayer designed to display error messages on text boxes.
Inheritance: IErrorDisplayStrategy
Afficher le fichier Open project: PaulStovell/trial-balance

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CanDisplayForElement ( FrameworkElement element ) : bool

Indicates whether we can display error messages for a given element.

ClearError ( FrameworkElement element ) : void

Clears any error messages on an element.

DisplayError ( FrameworkElement element, string errorMessage ) : void

Displays the error message on a given element.

TextBoxErrorDisplayStrategy ( ) : System

Constructor.

Method Details

CanDisplayForElement() public méthode

Indicates whether we can display error messages for a given element.
public CanDisplayForElement ( FrameworkElement element ) : bool
element System.Windows.FrameworkElement The element that needs to be validated.
Résultat bool

ClearError() public méthode

Clears any error messages on an element.
public ClearError ( FrameworkElement element ) : void
element System.Windows.FrameworkElement The element to clear any error messages for.
Résultat void

DisplayError() public méthode

Displays the error message on a given element.
public DisplayError ( FrameworkElement element, string errorMessage ) : void
element System.Windows.FrameworkElement The element to display the error on.
errorMessage string The error message to display.
Résultat void

TextBoxErrorDisplayStrategy() public méthode

Constructor.
public TextBoxErrorDisplayStrategy ( ) : System
Résultat System