C# Class Open.Core.Common.DataContextObserver

Monitors changes to an element DataContext property.
Inheritance: System.Windows.DependencyObject, INotifyDisposed
ファイルを表示 Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
DataContextObserver ( FrameworkElement source, System.Action onDataContextChanged ) : System
Dispose ( ) : void

Protected Methods

Method 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

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

public DataContextObserver ( FrameworkElement source, System.Action onDataContextChanged ) : System
source System.Windows.FrameworkElement
onDataContextChanged System.Action
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool isDisposing ) : void
isDisposing bool
return void

DisposeOfManagedResources() protected method

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
return void