In This Article

PropertyModelStringFilter Class

Represents a IDataFilter implementation for IPropertyModel string properties.

public class PropertyModelStringFilter : StringFilterBase, IDataFilter
Inheritance:
object DataFilterBase StringFilterBase object
Implements:
IDataFilter

Constructors

PropertyModelStringFilter()

Initializes an instance of the class.

public PropertyModelStringFilter()

Properties

Source

The IPropertyModel string property to examine with this filter.

public PropertyModelStringFilterSource Source { get; set; }

Property Value

PropertyModelStringFilterSource:

The default value is DisplayName.

Methods

Filter(object, object?)

Examines the specified item to see if meets filter conditions.

public override DataFilterResult Filter(object item, object? context)
Parameter Type Description
item object

The item to examine.

context object

An optional object that provides contextual information for the filter request.

Returns

DataFilterResult:

A DataFilterResult that indicates the filter result.

Fields

SourceProperty

Defines the Source property.

public static readonly DependencyProperty SourceProperty

Inherited Members

Extension Methods