Fluent.InRibbonGallery.Enlarge C# (CSharp) Méthode

Enlarge() public méthode

Enlarge control size
public Enlarge ( ) : void
Résultat void
        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);
        }