Professional UI Solutions
Site Map   /  Register

Ribbon Galleries

How to set a filter for a gallery?

You can do this programmatically by setting the gallery's SelectedItemCategoryFilter property to a filter from the gallery's ItemCategoryFilters collection. For example, after invoking the following line, the gallery's content will be filtered using the filter with index 3.

gallery1.SelectedItemCategoryFilter = gallery1.ItemCategoryFilters[3];

gallery1.SelectedItemCategoryFilter = gallery1.ItemCategoryFilters(3)

If you have any questions, please visit our forum or contact our technical support team at