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

A Windows Presentaion Foundation error provider.
상속: System.Windows.Controls.Decorator, INotifyPropertyChanged
파일 보기 프로젝트 열기: PaulStovell/trial-balance 1 사용 예제들

공개 메소드들

메소드 설명
ErrorProvider ( ) : System

Constructor.

Validate ( ) : bool

Validates the current DataContext and updates any displayed errors.

보호된 메소드들

메소드 설명
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the PropertyChanged event.

비공개 메소드들

메소드 설명
BindToDataContext ( object oldDataContext, object newDataContext ) : void

Subscribes to the DataContext's PropertyChanged event and uses it to keep in sync with the error list.

DataContext_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Called when a property on the current DataContext changes.

ErrorProvider_DataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when this ErrorProvider's DataContext changes.

메소드 상세

ErrorProvider() 공개 메소드

Constructor.
public ErrorProvider ( ) : System
리턴 System

OnPropertyChanged() 보호된 메소드

Raises the PropertyChanged event.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs Event arguments.
리턴 void

Validate() 공개 메소드

Validates the current DataContext and updates any displayed errors.
public Validate ( ) : bool
리턴 bool