In this example, we use the FilteringBehavior class to generate a set of filters based on the metadata type. The metadata type is specified using the SourceType property.
[XAML]<dx:FilteringBehaviorSourceType="{x:Type local:PersonFilteringViewModel}"/>
The way properties are edited is configured using the following attributes.
- FilterBooleanChoice
[C#][FilterBooleanChoice()]publicboolHasCar{get;set;}
- FilterDateTimeRange
[C#][FilterDateTimeRange("MinBirthDate","MaxBirthDate")]publicDateTimeBirthDate{get;set;}
- FilterRange
[C#][FilterRange("MinAge","MaxAge",EditorType=RangeUIEditorType.Range)]publicintAge{get;set;}
- FilterLookup
[C#][FilterLookup("NumberOfChildren")]publicintChildren{get;set;}