Class DispatcherNotifiableObject<T>
- Namespace
- Ecng.ComponentModel
- Assembly
- Ecng.ComponentModel.dll
Forward INotifyPropertyChanged notifications to dispatcher thread. Multiple notifications for the same property may be forwarded only once.
public class DispatcherNotifiableObject<T> : CustomObjectWrapper<T>, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor where T : class, INotifyPropertyChanged
Type Parameters
T
- Inheritance
-
DispatcherNotifiableObject<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
DispatcherNotifiableObject(IDispatcher, T)
public DispatcherNotifiableObject(IDispatcher dispatcher, T obj)
Parameters
dispatcher
IDispatcherobj
T
Properties
NotifyInterval
protected TimeSpan NotifyInterval { get; set; }
Property Value
Methods
DisposeManaged()
Disposes the managed resources. Override this method to add custom clean up of managed resources.
protected override void DisposeManaged()
NeedToNotify(string)
protected virtual bool NeedToNotify(string propName)
Parameters
propName
string
Returns
OnGetEvents()
Get property list from wrapped object.
protected override IEnumerable<EventDescriptor> OnGetEvents()