DataFilterPanel class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.DataFilterPanel
Modifiers: public
Summary¶
Represents a descriptor-driven filter editor surface for grids and lists.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Class hierarchy
classDiagram
class DataFilterPanel
class TemplatedControl
TemplatedControl <|-- DataFilterPanel
Inherits from: TemplatedControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [DataFilterPanel](# class. |
Properties¶
| Name | Summary |
|---|---|
| FilterState | Gets or sets the shared filter panel state projected by the control. |
| SearchText | Gets or sets the query text included when applying filters. |
| ResultCount | Gets or sets the optional result count included with the emitted query state. |
| SubmittedQueryState | Gets or sets the latest query state emitted by the panel. |
| ApplyFiltersCommand | Gets or sets the command invoked when filters are applied. |
| ClearFiltersCommand | Gets or sets the command invoked when filters are cleared. |
| AddFilterCommand | Gets or sets the command invoked when a descriptor should add or edit a filter. |
| RemoveFilterCommand | Gets or sets the command invoked when an active filter token should be removed. |
| ApplyCommand | Gets the command that applies current filters. |
| ClearCommand | Gets the command that clears current filters. |
Fields¶
| Name | Summary |
|---|---|
| static FilterStateProperty | Property for [FilterState](# |
| static SearchTextProperty | Property for [SearchText](# |
| static ResultCountProperty | Property for [ResultCount](# |
| static SubmittedQueryStateProperty | Property for [SubmittedQueryState](# |
| static ApplyFiltersCommandProperty | Property for [ApplyFiltersCommand](# |
| static ClearFiltersCommandProperty | Property for [ClearFiltersCommand](# |
| static AddFilterCommandProperty | Property for [AddFilterCommand](# |
| static RemoveFilterCommandProperty | Property for [RemoveFilterCommand](# |
Methods¶
| Name | Summary |
|---|---|
| CreateQueryState | Creates a search query snapshot from the current filter state. |
| ApplyFilters | Applies the current filters and emits a query-state snapshot. |
| ClearFilters | Clears current filters through the configured command hook. |