[]
        
(Showing Draft Content)

C1.WPF.DataFilter.C1FilterEditor

C1FilterEditor Class

The C1FilterEditor represents a filter as a condition tree.

Namespace: C1.WPF.DataFilter
Assembly: C1.WPF.DataFilter.4.6.2.dll
Syntax
[TemplatePart(Name = "FilterTree", Type = typeof(C1TreeView))]
[TemplatePart(Name = "Apply", Type = typeof(Button))]
[TemplatePart(Name = "Reset", Type = typeof(Button))]
public class C1FilterEditor : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
C1FilterEditor()

Initializes a new instance of a C1FilterEditor.

Fields

Name Description
AllowDragDropProperty

DependencyProperty for EnableDragDrop

ExpressionProperty

Expressions DependencyProperty

ItemMarginProperty

Identifies the ItemMargin dependency property.

Properties

Name Description
AllowDragDrop

Gets or sets a value indicating whether a drag and drop should be enable or not.

Expression

Expression uses to built Filter Node

ItemMargin

Margin for all Filter Node items

ItemsSource

Gets or sets the object used as the items source for the current C1FilterEditor control.

View

Gets the result of filtering the ItemsSource.

Methods

Name Description
ApplyFilterAsync()

Applies the filter to the data source asynchronously.

ClearFilter()

Removes all expressions from filter.

OnApplyTemplate()

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

OnFilterChanged(EventArgs)

Raises the FilterChanged event.

OnFilterChanging(CancelEventArgs)

Raises the FilterChanging event.

Events

Name Description
FilterChanged

Occurs when the filter changes.

FilterChanging

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