public void SetAreaVisibility(PivotArea area, bool visible) { var items = layoutControl.Items.Cast <BaseLayoutItem>().ToList(); var layoutItem = items.OfType <LayoutControlItem>().First(x => x.Control == panelFromArea(area)); layoutItem.Visibility = LayoutVisibilityConvertor.FromBoolean(visible); //for columns area (Color and symbol) also hide the empty space item to allow correct resizing if (area.Is(PivotArea.ColumnArea)) { emptySpaceItemColorToSymbol.Visibility = layoutItem.Visibility; } }