Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.Data Namespace / AndFilterExpression Class
Members Example


In This Topic
    AndFilterExpression Class
    In This Topic
    Represents a logical AND filter expression, which states that an item must match all the specified child filters in order to be included.
    Syntax
    'Declaration
     
    <DebuggerDisplayAttribute("FilterBy = {DebuggerDisplayString}")>
    <ContentPropertyAttribute("ChildExpressions")>
    Public NotInheritable Class AndFilterExpression 
       Inherits FilterExpressionOperator
    'Usage
     
    Dim instance As AndFilterExpression
    [DebuggerDisplay("FilterBy = {DebuggerDisplayString}")]
    [ContentProperty("ChildExpressions")]
    public sealed class AndFilterExpression : FilterExpressionOperator 
    Remarks
    Once the filter expression has been created, it is considered "frozen" and its values can no longer be modified.
    Example
    <sldg:DataGridControl x:Name="sldgDataGridControl"
                          ItemsSource="{Binding Path=Orders}">
        <sldg:DataGridControl.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <sldg:SignatureThemeResourceDictionary />
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </sldg:DataGridControl.Resources>
        
        <sldg:DataGridControl.FixedHeaders>
            <CheckBox Content="Display only French-Speaking Countries"
                      Checked="CheckBox_Checked"
                      Unchecked="CheckBox_Unchecked"
                      Style="{StaticResource SignatureThemeCheckBoxStyle}"/>
            <sldg:FilterRow>
                <sldg:FilterRow.FilterExpression>
                    <sldg:AndFilterExpression>
                        <sldg:FilterExpression MemberName="ShipVia"
                                               Value="3"
                                               FilterOperator="Equal" />
                        <sldg:FilterExpression MemberName="OrderDate"
                                               Value="2008/01/01"
                                               FilterOperator="GreaterThanOrEqual"
                                               IsTimeSensitive="False"/>                            
                    </sldg:AndFilterExpression>
                </sldg:FilterRow.FilterExpression>
            </sldg:FilterRow>
        </sldg:DataGridControl.FixedHeaders>
    </sldg:DataGridControl>
    Inheritance Hierarchy

    System.Object
       Xceed.Wpf.Data.FilterExpressionBase
          Xceed.Wpf.Data.FilterExpressionOperator
             Xceed.Wpf.Data.AndFilterExpression

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Initializes a new instance of the AndFilterExpression class.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets a list of the child filter expressions. (Inherited from Xceed.Wpf.Data.FilterExpressionOperator)
    Top
    Public Methods
     NameDescription
    Public MethodAdds a child filter expression, which will be used as part of a logical filter operation. (Inherited from Xceed.Wpf.Data.FilterExpressionOperator)
    Public MethodOverridden. Determines whether two objects are equal.  
    Public MethodOverridden. Returns the hash code for this instance.  
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, 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

    Reference

    AndFilterExpression Members
    Xceed.Wpf.Data Namespace
    cf224116-45e2-4539-9fd6-71cc219add2e