[]
        
(Showing Draft Content)

C1.WPF.DataFilter.C1FilterEditor

C1FilterEditor Class

The C1FilterEditor represents a filter as a condition tree.

Inheritance
C1FilterEditor
Namespace: C1.WPF.DataFilter
Assembly: C1.WPF.DataFilter.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, IDisposable

Constructors

Name Description
C1FilterEditor()

Initializes a new instance of the C1FilterEditor class.

Fields

Name Description
AllowDragDropProperty

DependencyProperty for EnableDragDrop

ExpressionProperty

Expressions DependencyProperty

ItemMarginProperty

Identifies the ItemMargin dependency property.

PopupStyleProperty

Identifies the PopupStyle 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

IsDisposed

Gets whether this instance is disposed.

ItemMargin

Margin for all Filter Node items.

ItemsSource

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

PopupStyle

Gets or sets the Style applied to the menu.

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.

Dispose()
Dispose(bool)
Finalize()

Finalizes this instance of the C1FilterEditor class.

OnApplyTemplate()
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.