C# Класс Open.Core.Common.DataContextObserver

Monitors changes to an element DataContext property.
Наследование: System.Windows.DependencyObject, INotifyDisposed
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DataContextObserver ( FrameworkElement source, System.Action onDataContextChanged ) : System
Dispose ( ) : void

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
GetInstance ( FrameworkElement sender ) : DataContextObserver
InvokeAction ( ) : void
OnDataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnDisposed ( ) : void
RegisterProperty ( ) : void
RemoveInstances ( IEnumerable items ) : void

Описание методов

DataContextObserver() публичный Метод

public DataContextObserver ( FrameworkElement source, System.Action onDataContextChanged ) : System
source System.Windows.FrameworkElement
onDataContextChanged System.Action
Результат System

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool isDisposing ) : void
isDisposing bool
Результат void

DisposeOfManagedResources() защищенный Метод

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
Результат void