Skip to main content
All docs
V26.1
  • FilteringPanelControl.OperatorForeground Property

    Gets or sets the foreground brush for comparison operators (for example, =, >, <) within the Filter Panel. This is a dependency property.

    Namespace: DevExpress.Xpf.Core.FilteringUI

    Assembly: DevExpress.Xpf.Grid.v26.1.dll

    Declaration

    public Brush OperatorForeground { get; set; }

    Property Value

    Type Default Description
    Brush null

    The foreground brush applied to comparison operators within the Filter Panel.

    Remarks

    When the OperatorForeground property value is null (default), the Filter Panel applies the active theme’s foreground to all comparison operators.

    Example: Set a Blue Foreground for Comparison Operators

    The following example sets a blue foreground for comparison operators within the Filter Panel:

    Filter Panel - Comparison Operator Foreground

    <dx:ThemedWindow x:Class="FilterPanelExample.MainWindow"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
                     xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
                     xmlns:dxfui="http://schemas.devexpress.com/winfx/2008/xaml/core/filteringui">
        <dxg:GridControl ItemsSource="{Binding Orders}">
            <dxg:GridControl.View>
                <dxg:TableView ShowFilterPanelMode="ShowAlways">
                    <dxg:TableView.FilteringPanelStyle>
                        <Style TargetType="dxfui:FilteringPanelControl">
                            <Setter Property="ColorMode" Value="Default"/>
                            <Setter Property="OperatorForeground" Value="Blue"/>
                        </Style>
                    </dxg:TableView.FilteringPanelStyle>
                </dxg:TableView>
            </dxg:GridControl.View>
        </dxg:GridControl>
    </dx:ThemedWindow>
    
    See Also