internal void ActivateShelfView(ShelfView shelfView)
{
if (shelfView.Content.IsAutoHidden)
{
// auto-hidden - bring into view
_form.DockingManager.BringAutoHideIntoView(shelfView.Content);
}
else
{
// docked or floating - ensure we are in front
shelfView.Content.BringToFront();
}
// set focus to the control - this is what actually activates the window
shelfView.Content.Control.Focus();
}