SearchBox class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.SearchBox
Modifiers: public
Summary¶
Represents a lightweight search input surface that projects shared SearchQueryState.
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 SearchBox
class TemplatedControl
TemplatedControl <|-- SearchBox
Inherits from: TemplatedControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Text | Gets or sets the current raw search text. |
| PlaceholderText | Gets or sets the placeholder text shown by the platform template. |
| QueryState | Gets or sets the aggregate search state for result counts, active filters, and activity. |
| SearchCommand | Gets or sets the command invoked when the user submits the current search text. |
| ClearCommand | Gets or sets the command invoked when the user clears the current search text. |
Fields¶
| Name | Summary |
|---|---|
| static TextProperty | Property for [Text](# |
| static PlaceholderTextProperty | Property for [PlaceholderText](# |
| static QueryStateProperty | Property for [QueryState](# |
| static SearchCommandProperty | Property for [SearchCommand](# |
| static ClearCommandProperty | Property for [ClearCommand](# |