Class FilterControlDateFilter
Defines a date selection filter for the FilterControl.
Inheritance
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TemplatePart(Name = "PART_DateSelectionBox", Type = typeof(Calendar))]
public class FilterControlDateFilter : FilterControlFilter, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Constructors
View SourceFilterControlDateFilter()
public constructor
Declaration
public FilterControlDateFilter()
Fields
View SourceAvailableDateFilterTypesProperty
Defines the dependency property for the AvailableDateFilterTypes property.
Declaration
public static readonly DependencyProperty AvailableDateFilterTypesProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
FilterModeProperty
Defines the dependency property for the FilterMode property.
Declaration
public static readonly DependencyProperty FilterModeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsDateFilterTypeSelectableProperty
Defines the dependency property for the IsDateFilterTypeSelectable property.
Declaration
public static readonly DependencyProperty IsDateFilterTypeSelectableProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MaxDateProperty
Defines the dependency property for the MaxDate property.
Declaration
public static readonly DependencyProperty MaxDateProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MinCalendarModeProperty
Defines the dependency property for the MinCalendarMode property.
Declaration
public static readonly DependencyProperty MinCalendarModeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MinDateProperty
Defines the dependency property for the MinDate property.
Declaration
public static readonly DependencyProperty MinDateProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
PreviewFormatProperty
Defines the dependency property for the PreviewFormat property.
Declaration
public static readonly DependencyProperty PreviewFormatProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
SelectedDateProperty
Defines the dependency property for the SelectedDate property.
Declaration
public static readonly DependencyProperty SelectedDateProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceAvailableDateFilterTypes
returns a list of available DateFilterTypes names (localization depended) that correspond to the DataFilterType
Declaration
[SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "Used as dependency property.")]
public Dictionary<FilterControlDateFilterType, string> AvailableDateFilterTypes { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<FilterControlDateFilterType, string> |
FilterMode
Indicates whether the filter value must match case.
Declaration
public FilterControlDateFilterType FilterMode { get; set; }
Property Value
| Type | Description |
|---|---|
| FilterControlDateFilterType |
IsDateFilterTypeSelectable
gets, sets a flag whether the DateFilterType is selectable within the DateFilterControl
Declaration
public bool IsDateFilterTypeSelectable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MaxDate
Indicates maximum date of the datetime filter.
Declaration
public DateTime MaxDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
MinCalendarMode
Returns or sets an enumeration that indicates the minimum calendar item type that can be selected within the control.
Declaration
public CalendarMode MinCalendarMode { get; set; }
Property Value
| Type | Description |
|---|---|
| CalendarMode |
MinDate
Indicates minimum date of the datetime filter.
Declaration
public DateTime MinDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
PartDateSelectionBox
Gets the filter selection box PART.
Declaration
protected Calendar PartDateSelectionBox { get; }
Property Value
| Type | Description |
|---|---|
| Calendar |
PreviewFormat
Gets, sets the preview format for date(time);
Declaration
public string PreviewFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SelectedDate
Gets the filter count.
Declaration
public DateTime? SelectedDate { get; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
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)
checks whether the obj fulfills the filter requirement. Result depends on the choosen FilterControlDateFilterType.
Declaration
protected override bool FindInObject(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | object that should fulfill the filter requirements |
Returns
| Type | Description |
|---|---|
| bool | true if |
Overrides
View SourceFormatFilterValuePreview(object)
defines the string to be seen in the filter preview (not expanded) mode
Declaration
protected override string FormatFilterValuePreview(object filterValue)
Parameters
| Type | Name | Description |
|---|---|---|
| object | filterValue | the date(time) |
Returns
| Type | Description |
|---|---|
| string |
Overrides
View SourceGetState()
Gets the state of this instance.
Declaration
protected override FilterState GetState()
Returns
| Type | Description |
|---|---|
| FilterState | The FilterState. |
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 SourceSetState(FilterState)
Sets the FilterState.
Declaration
protected override void SetState(FilterState filterState)
Parameters
| Type | Name | Description |
|---|---|---|
| FilterState | filterState | The FilterState. |