C# 클래스 PaulStovell.TrialBalance.UserInterface.Validation.TextBoxErrorDisplayStrategy

An error displayer designed to display error messages on text boxes.
상속: IErrorDisplayStrategy
파일 보기 프로젝트 열기: PaulStovell/trial-balance

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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.

메소드 상세

CanDisplayForElement() 공개 메소드

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.
리턴 bool

ClearError() 공개 메소드

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

DisplayError() 공개 메소드

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.
리턴 void

TextBoxErrorDisplayStrategy() 공개 메소드

Constructor.
public TextBoxErrorDisplayStrategy ( ) : System
리턴 System