void ResetBarUndockMode() { if (dockBarItem != null) { dockBarItem.Close(); dockBarItem = null; if (titleTab != null) { titleTab.UpdateBehavior(); } } }