Version

Groups Property (GalleryToolItemGroupFilter)

Gets the groups to show when this filter is selected in the gallery.
Syntax
'Declaration
 
Public ReadOnly Property Groups As GalleryToolItemGroupKeysCollection
public GalleryToolItemGroupKeysCollection Groups {get;}
Example
The sample demonstrates how to customize the behvior of a group filter in a gallery.

Imports Infragistics.Win.UltraWinToolbars

Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button7.Click
	' Get the gallery from the toolbars manager whose group filter will be customized
	Dim gallery As PopupGalleryTool = Me.UltraToolbarsManager1.Tools("PopupGalleryTool1")

	' Create a new group filter and keep a reference to it.
	Dim filter As GalleryToolItemGroupFilter = gallery.GroupFilters.Add("AllGroups")

	' Add every group from the gallery into the new filter
	' so when the filter is selected, every group is visible.
	Dim group As GalleryToolItemGroup
	For Each group In gallery.Groups
		filter.Groups.Add(group.Key)
	Next

	' Set the caption to appear in the gallery's filter bar when it is selected
	filter.Text = "All Groups"

	' Make the new filter the selected filter
	gallery.SelectedGroupFilter = filter
End Sub
using System.Windows.Forms;
using Infragistics.Win.UltraWinToolbars;

private void button1_Click( object sender, EventArgs e )
{
	// Get the gallery from the toolbars manager whose group filter will be customized
	PopupGalleryTool gallery = (PopupGalleryTool)this.ultraToolbarsManager1.Tools[ "PopupGalleryTool1" ];

	// Create a new group filter and keep a reference to it.
	GalleryToolItemGroupFilter filter = gallery.GroupFilters.Add( "AllGroups" );

	// Add every group from the gallery into the new filter
	// so when the filter is selected, every group is visible.
	foreach ( GalleryToolItemGroup group in gallery.Groups )
	{
		filter.Groups.Add( group.Key );
	}

	// Set the caption to appear in the gallery's filter bar when it is selected
	filter.Text = "All Groups";

	// Make the new filter the selected filter
	gallery.SelectedGroupFilter = filter;
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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