Class FilterControlMultiSelectFilter
Defines a multi selection filter for the FilterControl.
Inheritance
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TemplatePart(Name = "PART_FilterSelectionBox", Type = typeof(ListBox))]
public class FilterControlMultiSelectFilter : FilterControlFilter, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Constructors
View SourceFilterControlMultiSelectFilter()
Declaration
public FilterControlMultiSelectFilter()
Fields
View SourceAutoGenerateFilterItemsProperty
Declaration
public static readonly DependencyProperty AutoGenerateFilterItemsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
FilterItemsProperty
Defines the dependency property for the FilterItems property.
Declaration
public static readonly DependencyProperty FilterItemsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
FilterValueComparerProperty
Defines the dependency property for the FilterValueComparer property.
Declaration
public static readonly DependencyProperty FilterValueComparerProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
SelectionModeProperty
Defines the dependency property for the SelectionMode property.
Declaration
public static readonly DependencyProperty SelectionModeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceAutoGenerateFilterItems
Indicates whether the filter items are automatically generated.
Declaration
public bool AutoGenerateFilterItems { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
FilterItems
Gets or sets the filter items.
Declaration
public IEnumerable FilterItems { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable |
Remarks
If this value is left empty, the filter items are build upon the values of the Binding property.
FilterValueComparer
Gets or sets the IEqualityComparer that is check whether the filter value matches the search.
Declaration
public IEqualityComparer FilterValueComparer { get; set; }
Property Value
| Type | Description |
|---|---|
| IEqualityComparer |
PartFilterSelectionBox
Gets the filter selection box PART.
Declaration
protected ListBox PartFilterSelectionBox { get; }
Property Value
| Type | Description |
|---|---|
| ListBox |
SelectionMode
Gets or sets the SelectionMode to defined the items selection behavior for the list box.
Declaration
public SelectionMode SelectionMode { get; set; }
Property Value
| Type | Description |
|---|---|
| SelectionMode |
Methods
View SourceCreateId()
Gets the id of this instance
Declaration
protected override string CreateId()
Returns
| Type | Description |
|---|---|
| string | The id of this instance. |
Overrides
View SourceFilterValueChanged(DependencyPropertyChangedEventArgs)
Called when the filter value has been changed.
Declaration
protected override void FilterValueChanged(DependencyPropertyChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyPropertyChangedEventArgs | args |
Overrides
View SourceFindInObject(object)
Return true of the FilterValue is part of the given objects property.
Declaration
protected override bool FindInObject(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool | True if the FilterValue is part of the given objects property., otherwise false |
Overrides
View SourceFormatFilterValuePreview(object)
Formats the filter value to a readable string.
Declaration
protected override string FormatFilterValuePreview(object filterValue)
Parameters
| Type | Name | Description |
|---|---|---|
| object | filterValue | The filter value. |
Returns
| Type | Description |
|---|---|
| string | The filter value as readable string. |
Overrides
View SourceOnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
Declaration
public override void OnApplyTemplate()
Overrides
View SourceOnItemsSourceChanged(ICollectionView)
Invoked when the ItemsSource has changed.
Declaration
protected override void OnItemsSourceChanged(ICollectionView itemsSource)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollectionView | itemsSource | The items source. |
Overrides
View SourceResetFilter()
Resets the filter.
Declaration
public override void ResetFilter()
Overrides
View SourceSetState(FilterState)
Check the given filter value items whether can be used.
Declaration
protected override void SetState(FilterState filterState)
Parameters
| Type | Name | Description |
|---|---|---|
| FilterState | filterState |