RibbonTab.GroupSizeReductionOrder Property

.NET Framework (current version)
 

Gets or sets a collection of RibbonGroup names that specify the order in which group size definitions are applied as the ribbon is reduced in size.

Namespace:   System.Windows.Controls.Ribbon
Assembly:  System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)

[TypeConverterAttribute(typeof(StringCollectionConverter))]
public StringCollection GroupSizeReductionOrder { get; set; }

Property Value

Type: System.Collections.Specialized.StringCollection

A collection of RibbonGroup names that specify the order in which group size definitions are applied as the Ribbon is reduced in size. The registered default is null. For more information about what can influence the value, see Dependency Property Value Precedence.

Identifier field

GroupSizeReductionOrderProperty

Metadata properties set to true

None

The following example shows how to specify the GroupSizeReductionOrder.

<ribbon:RibbonTab Header="Home" 
    GroupSizeReductionOrder="Clipboard, Insert, Insert, Paragraph, Clipboard, Editing, Font, Clipboard" >
    <ribbon:RibbonGroup Header="Clipboard" Name="Clipboard" SmallImageSource="Images/Paste16.png">
        ...  
    </ribbon:RibbonGroup>
    <ribbon:RibbonGroup Header="Font" Name="Font" SmallImageSource="Images\FontColor16.png">
        ...
    </ribbon:RibbonGroup>
    <ribbon:RibbonGroup Header="Paragraph" Name="Paragraph" SmallImageSource="Images/AlignLeft16.png">
        ...
    </ribbon:RibbonGroup>
    <ribbon:RibbonGroup Header="Insert" Name="Insert" SmallImageSource="Images/InsertPicture16.png">
        ...
    </ribbon:RibbonGroup>
    <ribbon:RibbonGroup Header="Editing" Name="Editing" SmallImageSource="Images/Find16.png">
        ...
    </ribbon:RibbonGroup>
</ribbon:RibbonTab>

.NET Framework
Available since 4.5
Return to top
Show: