protected override void StartDrag() { DockWindow window = this.Parent as DockWindow; if (window == null) { return; } window.DockPanel.BeginDrag(window, window.RectangleToScreen(this.Bounds)); }