Table of Contents

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

AttachedProperty<IBinding>

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

AttachedProperty<string>

Methods

GetText(Control)

Gets the value of the TextProperty attached property from a given Control.

public static string? GetText(Control control)

Parameters

control Control

The 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 Interactive

The 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

control Control

The control.

text string

The search text to set.

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 Interactive

The interactive element.

value IBinding

The search text binding to set.