Back to Devexpress

Gallery.AllowFilter Property

wpf-devexpress-dot-xpf-dot-bars-dot-gallery-e99dff25.md

latest3.5 KB
Original Source

Gallery.AllowFilter Property

Gets or sets whether the group filtering feature is enabled. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool AllowFilter { get; set; }
vb
Public Property AllowFilter As Boolean

Property Value

TypeDescription
Boolean

true if the group filtering feature is enabled; otherwise, false.

|

Remarks

If the AllowFilter property is set to true the gallery group filtering feature is enabled. In this mode, when a dropdown gallery contains two or more groups the Group Filter panel is displayed at the top of the dropdown gallery. When this panel is clicked, a Group Filter menu is opened, which by default, contains check boxes that correspond to the existing gallery groups and which control the visibility of the groups. Unchecking a check box hides a corresponding group; checking the check box makes the group visible.

The caption of the Group Filter panel is specified by the Gallery.FilterCaption property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowFilter property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-spreadsheet-bind-spreadsheet-to-ms-sql-server-database/CS/WpfSpreadsheet_BindToDataSource/MainWindow.xaml#L522

xml
<dxr:GalleryDropDownPopupMenu.Gallery>
    <dxb:Gallery AllowFilter="False" ColCount="4" ItemDescriptionHorizontalAlignment="Left" IsItemCaptionVisible="False" IsItemDescriptionVisible="False" SizeMode="None">
        <dxb:GalleryItemGroup x:Name="grpInsertChartColumn2DCommandGroup" Caption="{Binding ConverterParameter=MenuCmd_InsertChartColumn2DCommandGroup, Converter={StaticResource stringIdConverter}, Mode=OneTime, Source={StaticResource stringIdConverter}}" IsCaptionVisible="True">

wpf-create-a-ribboncontrol/CS/RibbonControl_Ex/MainWindow.xaml#L229

xml
IsGroupCaptionVisible="False"
AllowFilter="False"
IsItemGlyphVisible="True"

See Also

FilterCaption

FilterControlTemplate

Groups

Gallery Class

Gallery Members

DevExpress.Xpf.Bars Namespace