void dockContent_Disposed(object sender, EventArgs e) { _dockContents.Remove(((DockContent)sender).WindowPane); }