internal void ShowShelfView(ShelfView shelfView)
{
if (!shelfView.Content.Visible)
shelfView.Content.BringToFront();
if (shelfView.Content.IsDocked)
{
if (shelfView.Content.IsAutoHidden) // auto-hide mode
{
// show without activating
_form.DockingManager.BringAutoHideIntoView(shelfView.Content); // show it
}
else
{
// content is pinned - therefore it should be already visible
}
}
else
{
// floating
_form.DockingManager.ShowContent(shelfView.Content);
}
}