protected override void Dispose(bool disposing) { if (this.ListView != null) { BindingHelper.RemoveHandler( this.ListView, ItemsControl.ItemsSourceProperty, typeof(ListView), this.OnItemsSourceChanged ); } if (this.ScriptingContext != null) { this.ScriptingContext.Dispose(); this.ScriptingContext = null; } base.Dispose(disposing); }
protected override void OnDisposing() { BindingHelper.RemoveHandler(this.ScrollViewer, VerticalValueProperty, typeof(ScrollViewer), this.OnVerticalValueChanged); base.OnDisposing(); }