BooleanFilterBase Class
Provides an abstract base class for a boolean IDataFilter implementation.
public abstract class BooleanFilterBase : DataFilterBase, IDataFilter
- Inheritance:
- object DataFilterBase object
- Derived:
- PropertyModelBooleanFilter
- Implements:
- IDataFilter
Constructors
BooleanFilterBase()
Initializes an instance of the class.
protected BooleanFilterBase()
Properties
Operation
Gets or sets the boolean operation performed by this filter.
public BooleanFilterOperation Operation { get; set; }
Property Value
- BooleanFilterOperation:
The boolean operation performed by this filter. The default value is
BooleanFilterOperation.Equals
.
Value
Gets or sets the operand value used by this filter.
public bool Value { get; set; }
Property Value
- bool:
The operand value used by this filter. The default value is
true
.
Methods
FilterByBoolean(bool)
Examines the specified boolean to see if meets filter conditions.
protected virtual bool FilterByBoolean(bool source)
Parameter | Type | Description |
---|---|---|
source | bool | The boolean to examine. |
Returns
- bool:
true
if the conditions for the filter are met by the boolean; otherwise,false
.
Fields
OperationProperty
Identifies the Operation dependency property. This field is read-only.
public static readonly DependencyProperty OperationProperty
ValueProperty
Identifies the Value dependency property. This field is read-only.
public static readonly DependencyProperty ValueProperty