RibbonGroup.GroupSizeDefinitions Property
Gets or sets the RibbonGroupSizeDefinition collection for a ribbon group.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Public Property GroupSizeDefinitions As RibbonGroupSizeDefinitionBaseCollection
public RibbonGroupSizeDefinitionBaseCollection GroupSizeDefinitions { get; set; }
public:
property RibbonGroupSizeDefinitionBaseCollection^ GroupSizeDefinitions {
RibbonGroupSizeDefinitionBaseCollection^ get ();
void set (RibbonGroupSizeDefinitionBaseCollection^ value);
}
member GroupSizeDefinitions : RibbonGroupSizeDefinitionBaseCollection with get, set
function get GroupSizeDefinitions () : RibbonGroupSizeDefinitionBaseCollection
function set GroupSizeDefinitions (value : RibbonGroupSizeDefinitionBaseCollection)
Property Value
Type: Microsoft.Windows.Controls.Ribbon.RibbonGroupSizeDefinitionBaseCollection
A collection of RibbonGroupSizeDefinition objects that describe how to size controls in the group for different sizes of the RibbonGroup.
Dependency Property Information
Identifier field |
|
Metadata properties set to true |
None |
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>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.