In This Article

RibbonGalleryVariantBehavior Enum

Specifies how a RibbonGallery expands and collapses based on the value of its VariantSize property.

public enum RibbonGalleryVariantBehavior

Remarks

The RibbonGallery is intended to be used directly as a child of a Group control. In this scenario, the parent Group automatically sets the VariantSize property to the group's variant size, and therefore enables the behavior specified by this enumeration.

Fields

Name Description
Default

The gallery renders as a PopupButton when the VariantSize of the RibbonGallery is Small. Depending on the space available, the gallery shows between MediumVariantColumnCount and LargeVariantColumnCount columns when the VariantSize of the RibbonGallery is Medium Depending on the space available, the gallery starts showing LargeVariantColumnCount columns and auto-increases the column count to the number of items in the gallery when the VariantSize of the RibbonGallery is Large This option provides the largest number of variants for child controls.

NoAutoSize

Same as the Default behavior except that when the VariantSize of the RibbonGallery is Large, the number of columns will not automatically increase to fill the space available.

NoCollapse

Same as the Default behavior except that when the VariantSize of the RibbonGallery is Small, it will not collapse to a PopupButton and will still render as if in a Medium variant with MediumVariantColumnCount columns.

NoCollapseNoAutoSize

Depending on the space available, the gallery will always show between MediumVariantColumnCount and LargeVariantColumnCount columns. It will not collapse to a PopupButton when in a Small variant or auto-increase the number of columns to fill the space available when in a Large variant.