ItemVariantBehavior Enum
Specifies how controls behave in terms of applying variants.
public enum ItemVariantBehavior
Remarks
When set on a RibbonControlGroup, the value specifies how child controls of a RibbonControlGroup are assigned a variant size based on the current value of the
VariantSize property, but only when the parent's RibbonGroup's LayoutMode is Stacking
.
The RibbonControlGroup control is intended to be used directly as a child of a RibbonGroup control.
In this scenario, the parent RibbonGroup automatically sets the VariantSize property
to the group's variant size, and therefore enables the behavior specified by this enumeration
when the parent's RibbonGroup's LayoutMode is Stacking
.
Alternatively, when set on a control such as a button (e.g., ToolBarItemVariantBehavior), the value specifies the allowed variant sizes when on a ribbon in Simplified layout mode or a toolbar. Note that these scenarios do not allow large variant sizes.
Fields
Name | Description |
---|---|
All | Controls will use all variant sizes. This option provides the largest number of variants for controls.
When in a RibbonControlGroup, controls use a |
AlwaysLarge | Controls will only use the
When in a RibbonControlGroup, controls always use a |
AlwaysMedium | Controls will only use the
When in a RibbonControlGroup, controls always use a |
AlwaysSmall | Controls will only use the
When in a RibbonControlGroup, controls always use a |
NeverLarge | Controls will use the
When in a RibbonControlGroup, controls use a |
NeverMedium | Controls will use the
When in a RibbonControlGroup, controls use a |
NeverSmall | Controls will use the
When in a RibbonControlGroup, controls use a |