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

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

Public Methods

Method Description
ErrorProvider ( ) : System

Constructor.

Validate ( ) : bool

Validates the current DataContext and updates any displayed errors.

Protected Methods

Method Description
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the PropertyChanged event.

Private Methods

Method 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 method

Constructor.
public ErrorProvider ( ) : System
return System

OnPropertyChanged() protected method

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

Validate() public method

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