DispatcherNotifiableObject

Ecng.ComponentModel

Forward INotifyPropertyChanged notifications to dispatcher thread. Multiple notifications for the same property may be forwarded only once.

継承元: CustomObjectWrapper<T>

コンストラクター

DispatcherNotifiableObject
public DispatcherNotifiableObject(IDispatcher dispatcher, T obj, TimeSpan interval)
dispatcherNotifiableObject = DispatcherNotifiableObject(dispatcher, obj, interval)

Instance of DispatcherNotifiableObject.

dispatcher
Dispatcher to use for invoking property changed notifications.
obj
Parent object to wrap.
interval
Interval between property changed notifications.

メソッド

DisposeManaged
protected override void DisposeManaged()
dispatcherNotifiableObject.DisposeManaged()

Disposes the managed resources. Override this method to add custom clean up of managed resources.

NeedToNotify
protected virtual bool NeedToNotify(string propName)
result = dispatcherNotifiableObject.NeedToNotify(propName)

Called when property changed.

OnGetEvents
protected override IEnumerable<EventDescriptor> OnGetEvents()
result = dispatcherNotifiableObject.OnGetEvents()

Gets the event descriptors from the wrapped object.

戻り値: Collection of proxy event descriptors.