Inheritance: NSObject, IHandleNotifyPropertyChanged, IHandleNotifyCollectionChanged
Example #1
0
        protected void SetDataContextBinder(DataContextBinder binder)
        {
            AddNotifyCollectionChangedHandler(Value, binder);

            AddNotifyPropertyChangedHandler(DataContextSource, binder);
            AddNotifyPropertyChangedHandler(Source, binder);

            _DataContextBinder = binder;
        }
Example #2
0
        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);
        }
		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);
		}
		protected void SetDataContextBinder(DataContextBinder binder)
		{
			AddNotifyCollectionChangedHandler(Value, binder);

			AddNotifyPropertyChangedHandler(DataContextSource, binder);
			AddNotifyPropertyChangedHandler(Source, binder);

			_DataContextBinder = binder;
		}