[]
        
(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.

Namespace: C1.WPF.DataFilter
Assembly: C1.WPF.DataFilter.4.6.2.dll
Syntax
[TemplatePart(Name = "Header", Type = typeof(ContentPresenter))]
[TemplatePart(Name = "Presenter", Type = typeof(DataFilterPresenter))]
public class C1DataFilter : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
C1DataFilter()

Initializes a new instance of a C1DataFilter.

Fields

Name Description
AutoApplyProperty

Identifies the AutoApply dependency property.

AutoGenerateFiltersProperty

Identifies the AutoGenerateFilters dependency property.

CollapsedBackgroundProperty

Identifies the CollapsedBackground dependency property.

ExpandedBackgroundProperty

Identifies the ExpandedBackground dependency property.

ExpandedMouseOverBrushProperty

Identifies the ExpandedMouseOverBrush dependency property.

FiltersProperty

FiltersProperty

HeaderContentProperty

Identifies the HeaderContent dependency property.

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property.

ItemBackgroundProperty

Identifies the ItemBackground dependency property.

ItemBorderBrushProperty

Identifies the ItemBorderBrush dependency property.

ItemBorderThicknessProperty

Identifies the ItemBorderThickness dependency property.

ItemCornerRadiusProperty

Identifies the ItemCornerRadius dependency property.

ItemForegroundProperty

Identifies the ItemForeground dependency property.

ItemMarginProperty

Identifies the ItemMargin dependency property.

ItemPaddingProperty

Identifies the ItemPadding dependency property.

ItemsSourceProperty

Identifies the ItemsSource 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.

CollapsedBackground

Collapsed background for expander

ExpandedBackground

Expanded background for expander

ExpandedMouseOverBrush

MouseOverBrush for expander

Filters

Gets the collection of filters.

HeaderContent

Header content for the Header of current C1DataFilter control.

HeaderTemplate

DataTemplate that uses in Header

ItemBackground

Background for all Filter Presenter

ItemBorderBrush

BorderBrush for all Filter Presenter

ItemBorderThickness

BorderThickness for all Filter Presenter

ItemCornerRadius

Corner Radius of all Filter Presenters

ItemForeground

Foreground for Filter Presenter

ItemMargin

Margin for all Filter Presenter

ItemPadding

Padding for all FilterPresenter

ItemsSource

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

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.

GenerateFilters(bool)

Generates filters for the current items source.

LoadFilterExpression(string)

Loads expressions to the Filters collection from a file.

OnApplyTemplate()

Builds the visual tree for the C1DataFilter control when a new template is applied.

OnBeforeTooltipShow(BeforeTooltipShowEventArgs)

Rises the BeforeTooltipShow event.

OnFilterAutoGenerating(FilterAutoGeneratingEventArgs)

Raises the FilterAutoGenerating event.

OnFilterChanged(EventArgs)

Raises the FilterChanged event.

OnFilterChanging(CancelEventArgs)

Raises the FilterChanging event.

OnFilterValueChanged(FilterChangedEventArgs)

Raises the FilterValueChanged event.

ResetFilters()
SaveFilterExpression(string)

Saves expressions from the Filters collection to a file.

Events

Name Description
AutoApplyChanged

Event raised when the AutoApply property has changed.

AutoGenerateFiltersChanged

Event raised when the AutoGenerateFilters property has changed.

BeforeTooltipShow

Occurs before a tooltip is shown.

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.