Rediger

Del via


RibbonGroup.GroupSizeDefinitions Property

Definition

Gets or sets the RibbonGroupSizeDefinition collection for a ribbon group.

public:
 property System::Windows::Controls::Ribbon::RibbonGroupSizeDefinitionBaseCollection ^ GroupSizeDefinitions { System::Windows::Controls::Ribbon::RibbonGroupSizeDefinitionBaseCollection ^ get(); void set(System::Windows::Controls::Ribbon::RibbonGroupSizeDefinitionBaseCollection ^ value); };
public System.Windows.Controls.Ribbon.RibbonGroupSizeDefinitionBaseCollection GroupSizeDefinitions { get; set; }
member this.GroupSizeDefinitions : System.Windows.Controls.Ribbon.RibbonGroupSizeDefinitionBaseCollection with get, set
Public Property GroupSizeDefinitions As RibbonGroupSizeDefinitionBaseCollection

Property Value

A collection of RibbonGroupSizeDefinition objects that describe how to size controls in the group for different sizes of the RibbonGroup.

Examples

The following example shows a GroupSizeDefinitions collection that specifies three different group sizes.

<ribbon:RibbonGroup.GroupSizeDefinitions>
  <ribbon:RibbonGroupSizeDefinition>
    <ribbon:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True" />
    <ribbon:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="True" />
    <ribbon:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="True" />
  </ribbon:RibbonGroupSizeDefinition>
  <ribbon:RibbonGroupSizeDefinition>
    <ribbon:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True" />
    <ribbon:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="False" />
    <ribbon:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="False" />
  </ribbon:RibbonGroupSizeDefinition>
  <ribbon:RibbonGroupSizeDefinition IsCollapsed="True" />
</ribbon:RibbonGroup.GroupSizeDefinitions>

Remarks

Dependency Property Information

Identifier field GroupSizeDefinitionsProperty
Metadata properties set to true None

Applies to