C# Class Open.Core.Common.DataContextObserver

Monitors changes to an element DataContext property.
Inheritance: System.Windows.DependencyObject, INotifyDisposed
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Méthodes publiques

Méthode Description
DataContextObserver ( FrameworkElement source, System.Action onDataContextChanged ) : System
Dispose ( ) : void

Méthodes protégées

Méthode Description
Dispose ( bool isDisposing ) : void
DisposeOfManagedResources ( ) : void

Invoked when the Dispose method is called. Use this to dispose of any managed resources or unwire from events etc.

It is not necessary to call base in the overridden method. This is a convenience method that is called from the main 'Dispose' virtual method.

Private Methods

Méthode Description
GetInstance ( FrameworkElement sender ) : DataContextObserver
InvokeAction ( ) : void
OnDataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnDisposed ( ) : void
RegisterProperty ( ) : void
RemoveInstances ( IEnumerable items ) : void

Method Details

DataContextObserver() public méthode

public DataContextObserver ( FrameworkElement source, System.Action onDataContextChanged ) : System
source System.Windows.FrameworkElement
onDataContextChanged System.Action
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool isDisposing ) : void
isDisposing bool
Résultat void

DisposeOfManagedResources() protected méthode

Invoked when the Dispose method is called. Use this to dispose of any managed resources or unwire from events etc.
It is not necessary to call base in the overridden method. This is a convenience method that is called from the main 'Dispose' virtual method.
protected DisposeOfManagedResources ( ) : void
Résultat void