private void UpdateCellSettings()
{
KryptonWorkspaceCell cell = FloatspaceControl.FirstVisibleCell();
if (cell != null)
{
// If there is only a single cell inside the floating window
if (FloatspaceControl.CellVisibleCount <= 1)
{
// Cell display mode depends on the number of tabs in the cell
if (cell.Pages.VisibleCount == 1)
cell.NavigatorMode = NavigatorMode.HeaderGroup;
else
cell.NavigatorMode = NavigatorMode.HeaderGroupTab;
}
else
{
do
{
// With multiple cells we always need the tabs showing
cell.NavigatorMode = NavigatorMode.HeaderGroupTab;
cell = FloatspaceControl.NextVisibleCell(cell);
}
while (cell != null);
}
}
// Only show the floating window if there is a visible cell
Visible = (FloatspaceControl.CellVisibleCount > 0);
}