private void Detach(FrameworkElement element) { element.MouseLeftButtonDown -= this.OnHeaderMouseLeftButtonDown; this.dataSource = null; this.proxy = null; }