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

A Windows Presentaion Foundation error provider.
Inheritance: System.Windows.Controls.Decorator, INotifyPropertyChanged
Afficher le fichier Open project: PaulStovell/trial-balance Class Usage Examples

Méthodes publiques

Méthode Description
ErrorProvider ( ) : System

Constructor.

Validate ( ) : bool

Validates the current DataContext and updates any displayed errors.

Méthodes protégées

Méthode Description
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the PropertyChanged event.

Private Methods

Méthode Description
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.

Method Details

ErrorProvider() public méthode

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

OnPropertyChanged() protected méthode

Raises the PropertyChanged event.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs Event arguments.
Résultat void

Validate() public méthode

Validates the current DataContext and updates any displayed errors.
public Validate ( ) : bool
Résultat bool