Class FilterControlTextFilter
Defines a text filter for the FilterControl.
Inheritance
FilterControlTextFilter
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TemplatePart(Name = "PART_SearchBox", Type = typeof(TextBox))]
public class FilterControlTextFilter : FilterControlFilter, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Fields
View SourceMatchCaseProperty
Defines the dependency property for the MatchCase.
Declaration
public static readonly DependencyProperty MatchCaseProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceMatchCase
Indicates whether the filter value must match case.
Declaration
public bool MatchCase { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PartSearchBox
Gets the search box PART.
Declaration
protected TextBox PartSearchBox { get; }
Property Value
| Type | Description |
|---|---|
| TextBox |
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. |