Ribbon.SizeDefinitions property

Represents a container for custom layout templates of Ribbon controls.

Usage

<Ribbon.SizeDefinitions>
  child elements
</Ribbon.SizeDefinitions>

Attributes

There are no attributes.

Child elements

Element Description
SizeDefinition
May occur one or more times

Parent elements

Element
Ribbon

Remarks

Optional.

May occur at most once for each Ribbon.

Examples

The following code example illustrates a basic custom template.

<Ribbon.SizeDefinitions>
  <SizeDefinition Name="CustomTemplate">
    <GroupSizeDefinition Size="Large">
      <ControlSizeDefinition ImageSize="Large" IsLabelVisible="true" />
    </GroupSizeDefinition>
    <GroupSizeDefinition Size="Medium">
      <ControlSizeDefinition ImageSize="Small" IsLabelVisible="false" />
    </GroupSizeDefinition>
    <GroupSizeDefinition Size="Small">
      <ControlSizeDefinition ImageSize="Small" IsLabelVisible="false" />
    </GroupSizeDefinition>
  </SizeDefinition>
</Ribbon.SizeDefinitions>

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]

See also

Customizing a Ribbon Through Size Definitions and Scaling Policies