Class
PropertyFilterDescriptor

Represents a FilterDescriptorBase that is associated with a particular property in the underlying ViewModel.

Definition

Constructors

PropertyFilterDescriptor()

Declaration

cs-api-definition
protected PropertyFilterDescriptor()

Properties

PropertyName

Gets or sets the name of the property that is used to retrieve the value to filter by.

Declaration

cs-api-definition
public string PropertyName { get; set; }

Property Value

string

Value

Gets or sets the value used in the comparisons. This is the right operand of the comparison.

Declaration

cs-api-definition
public object Value { get; set; }

Property Value

object

Methods

OnPropertyChanged(string)

Provides an entry point for inheritors to provide additional logic over the PropertyChanged routine.

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string

Overrides DataDescriptor.OnPropertyChanged(string)

PassesFilterOverride(object)

Encapsulates the core filter logic exposed by the descriptor. Allows inheritors to provide their own custom filtering logic.

Declaration

cs-api-definition
protected virtual bool PassesFilterOverride(object itemValue)

Parameters

itemValue

object

The property value, as defined by the property.

Returns

bool

True if the filter is passed and the associated item should be displayed, false otherwise.