public void Enlarge()
{
/*currentItemsInRow++;
if ((CanCollapseToButton) && (CurrentItemsInRow >= MinItemsInRow) && (Size == RibbonControlSize.Large)) IsCollapsed = false;
InvalidateMeasure();*/
if (IsCollapsed && (RibbonAttachedProperties.GetRibbonSize(this) == RibbonControlSize.Large)) IsCollapsed = false;
else if (galleryPanel.MinItemsInRow < MaxItemsInRow)
{
galleryPanel.MinItemsInRow++;
galleryPanel.MaxItemsInRow = galleryPanel.MinItemsInRow;
}
else return;
InvalidateMeasure();
//UpdateLayout();
if (Scaled != null) Scaled(this, EventArgs.Empty);
}