Class TextSearch
- Namespace
- Avalonia.Controls.Primitives
- Assembly
- Avalonia.Controls.dll
Allows to customize text searching in SelectingItemsControl.
public static class TextSearch
- Inheritance
-
TextSearch
- Inherited Members
Fields
TextBindingProperty
Defines the TextBinding attached property. The binding will be applied to each item during text search in SelectingItemsControl (such as ComboBox).
public static readonly AttachedProperty<IBinding?> TextBindingProperty
Field Value
TextProperty
Defines the Text attached property. This text will be considered during text search in SelectingItemsControl (such as ComboBox). This property is usually applied to an item container directly.
public static readonly AttachedProperty<string?> TextProperty
Field Value
Methods
GetText(Control)
Gets the value of the TextProperty attached property from a given Control.
public static string? GetText(Control control)
Parameters
control
ControlThe control.
Returns
- string
The search text.
GetTextBinding(Interactive)
Gets the value of the TextBindingProperty attached property from a given Interactive.
[AssignBinding]
public static IBinding? GetTextBinding(Interactive interactive)
Parameters
interactive
InteractiveThe interactive element.
Returns
- IBinding
The search text binding.
SetText(Control, string?)
Sets the value of the TextProperty attached property to a given Control.
public static void SetText(Control control, string? text)
Parameters
SetTextBinding(Interactive, IBinding?)
Sets the value of the TextBindingProperty attached property to a given Interactive.
public static void SetTextBinding(Interactive interactive, IBinding? value)
Parameters
interactive
InteractiveThe interactive element.
value
IBindingThe search text binding to set.