Version

ToolHorizontalWrapPanel Class

A Panel derived element used to arrange tools horizontally within a RibbonGroup.
Syntax
'Declaration
 
Public Class ToolHorizontalWrapPanel 
   Inherits System.Windows.Controls.Panel
public class ToolHorizontalWrapPanel : System.Windows.Controls.Panel 
Remarks

The MinRows and MaxRows are used to determine the range of rows into which the items may be arranged. By default, the panel will arrange the items using the MinRows. When a GroupVariant with a GroupVariant.ResizeAction of IncreaseHorizontalWrapRowCount is processed, the RowCount is increased towards the MaxRows value.

The SortOrderProperty attached property can be used to determine the order of the items when the RowCount is increased above the MinRows value. By default 2 rows will be created. If the containing RibbonGroup is resized smaller and there is not enough room on 2 rows for all the tools, the tools will be re-arranged on 3 rows and possibly reordered based on the SortOrderProperty attached property (potentially) assigned to each tool.

Example
ToolHorizontalWrapPanel SortOrder property

<igRibbon:ToolHorizontalWrapPanel MaxRows="3" MinRows="1">
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="1" Id="Button1" Caption="Tool Button1 ... " />
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="2" Id="Button2" Caption="Tool Button2 ... " />
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="13" Id="Button3" Caption="Tool Button3 ... " />
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="14" Id="Button4" Caption="Tool Button4 ... " />
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="5" Id="Button5" Caption="Tool Button5 ... " />
</igRibbon:ToolHorizontalWrapPanel>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also