FilterDescriptor
Represents a filter descriptor of the form Member-Operator-Value.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Syntax:
public class FilterDescriptor : OperatorValueFilterDescriptorBase, ISuspendNotifications, IFilterDescriptor, INotifyPropertyChanged
Inheritance: objectInheritanceContextPropagatorDescriptorBaseFilterDescriptorBaseOperatorValueFilterDescriptorBaseFilterDescriptor...
Implements:
Inherited Members
Constructors
Initializes a new instance of the FilterDescriptor class.
public FilterDescriptor()
Initializes a new instance of the FilterDescriptor class.
public FilterDescriptor(string member, FilterOperator filterOperator, object filterValue, bool caseSensitive, Type memberType)
The member.
filterOperatorFilterOperatorThe filter operator.
filterValueobjectThe filter value.
caseSensitiveboolIf set to true indicates that this filter descriptor will be case sensitive.
The Type of the member.
Initializes a new instance of the FilterDescriptor class.
public FilterDescriptor(string member, FilterOperator filterOperator, object filterValue, bool caseSensitive)
The member.
filterOperatorFilterOperatorThe filter operator.
filterValueobjectThe filter value.
caseSensitiveboolIf set to true indicates that this filter descriptor will be case sensitive.
Initializes a new instance of the FilterDescriptor class.
public FilterDescriptor(string member, FilterOperator filterOperator, object filterValue, CultureInfo cultureInfo)
The member.
filterOperatorFilterOperatorThe filter operator.
filterValueobjectThe filter value.
cultureInfoCultureInfoThe culture of the filter descriptor.
Initializes a new instance of the FilterDescriptor class.
public FilterDescriptor(string member, FilterOperator filterOperator, object filterValue)
The member.
filterOperatorFilterOperatorThe filter operator.
filterValueobjectThe filter value.
Fields
MemberProperty
DependencyProperty
Identifies the Member dependency property.
public static readonly DependencyProperty MemberProperty
Properties
Gets a value indicating whether this filter is active. A filter is considered active if its Value is different from OperatorValueFilterDescriptorBase.UnsetValue.
public override bool IsActive { get; }
A value indicating whether this filter is active.
Overrides:
A filter is considered active if its Value is different from OperatorValueFilterDescriptorBase.UnsetValue.
Specifies if search with accent is enable.
public bool IsSearchWithAccentEnabled { get; set; }
Gets or sets the member name which will be used for filtering.
public string Member { get; set; }
The member that will be used for filtering.
Gets or sets the type of the member that is used for filtering. Set this property if the member type cannot be resolved automatically. Such cases are: items with ICustomTypeDescriptor, XmlNode or DataRow. Changing this property does not raise PropertyChanged event.
public Type MemberType { get; set; }
The type of the member used for filtering.
Methods
Creates a predicate filter expression used for collection filtering.
protected override Expression CreateFilterExpression(ParameterExpression parameterExpression)
The parameter expression, which will be used for filtering.
Returns:A predicate filter expression.
Overrides:
Creates a predicate filter expression.