protected void SetDataContextBinder(DataContextBinder binder) { AddNotifyCollectionChangedHandler(Value, binder); AddNotifyPropertyChangedHandler(DataContextSource, binder); AddNotifyPropertyChangedHandler(Source, binder); _DataContextBinder = binder; }
protected override void Dispose(bool disposing) { if (disposing) { Id.Dispose(); if (DataContextBinder != null) { DataContextBinder = null; } RemoveNotifyPropertyChangedHandler(Source, this); RemoveNotifyPropertyChangedHandler(DataContextSource, this); RemoveNotifyCollectionChangedHandler(Source, this); RemoveNotifyCollectionChangedHandler(DataContextSource, this); } base.Dispose(disposing); }