Пример #1
0
 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);
 }
Пример #2
0
 protected override void OnDisposing()
 {
     BindingHelper.RemoveHandler(this.ScrollViewer, VerticalValueProperty, typeof(ScrollViewer), this.OnVerticalValueChanged);
     base.OnDisposing();
 }