[]
        
(Showing Draft Content)

C1.WPF.DataFilter.C1DataFilter

C1DataFilter Class

The C1DataFilter lets users filter data based on criteria's. It can be bound to any data-aware control and multiple conditional filtering could be applied.

Inheritance
C1DataFilter
Namespace: C1.WPF.DataFilter
Assembly: C1.WPF.DataFilter.dll
Syntax
[StyleTypedProperty(Property = "ExpandIconStyle", StyleTargetType = typeof(ContentControl))]
[StyleTypedProperty(Property = "PopupStyle", StyleTargetType = typeof(C1PopupBorder))]
[TemplatePart(Name = "Items", Type = typeof(ItemsPresenter))]
public class C1DataFilter : C1Accordion

Constructors

Name Description
C1DataFilter()

Initializes a new instance of the C1DataFilter class.

Fields

Name Description
AutoApplyProperty

Identifies the AutoApply dependency property.

AutoGenerateFiltersProperty

Identifies the AutoGenerateFilters dependency property.

ChecklistEmptyFilterBehaviorProperty

Identifies the ChecklistEmptyFilterBehavior dependency property.

ItemsSourceProperty

Identifies the ItemsSource dependency property.

PopupStyleProperty

Identifies the PopupStyle dependency property.

Properties

Name Description
AutoApply

Gets or sets a value indicating whether the filter should be automatically applied to the DataSource after the filter value is changed or not.

AutoGenerateFilters

Gets or sets a value indicating whether to generate filters automatically.

ChecklistEmptyFilterBehavior

Gets or sets the behavior when CheckListFilter is assigned an empty expression.

DataCollection

Gets the underlying data collection used to filter the original ItemsSource collection.

Filters

Gets the collection of filters.

Items

Gets the collection used to get the C1.WPF.Accordion.C1Expander item containers.

ItemsSource

Gets or sets the object used as the data source for the current C1DataFilter control.

PopupStyle

Gets or sets the Style applied to the menu.

View

Gets the result of filtering the ItemsSource.

Methods

Name Description
ApplyFilter()

Applies the filter to the items source.

ApplyFilterAsync()

Applies the filter to the items source asynchronously.

ClearContainerForItemOverride(DependencyObject, object)
DeserializeFilterExpression(string)

Deserialize xml and add expressions to the Filters collection.

Dispose(bool)
GenerateFilters(bool)

Generates filters for the current items source.

LoadFilterExpression(string)

Loads expressions to the Filters collection from a file.

OnApplyTemplate()
OnFilterAutoGenerating(FilterAutoGeneratingEventArgs)

Raises the FilterAutoGenerating event.

OnFilterChanged(EventArgs)

Raises the FilterChanged event.

OnFilterChanging(CancelEventArgs)

Raises the FilterChanging event.

OnFilterValueChanged(FilterChangedEventArgs)

Raises the FilterValueChanged event.

PrepareContainerForItemOverride(DependencyObject, object)
Reset()

Reset Filters.

ResetFilters()
SaveFilterExpression(string)

Saves expressions from the Filters collection to a file.

SerializeFilterExpression()

Serialize the Filters collection to a xml content.

Events

Name Description
AutoApplyChanged

Event raised when the AutoApply property has changed.

AutoGenerateFiltersChanged

Event raised when the AutoGenerateFilters property has changed.

FilterAutoGenerating

Occurs before the filter is added to the Filters. Allows to cancel the change.

FilterChanged

Occurs when the filter changes.

FilterChanging

Occurs before the filter is changed. Allows to cancel the change.

FilterValueChanged

Occurs when a value of the filter changes.

ItemsSourceChanged

Event raised when the ItemsSource property has changed.