Skip to main content

TextSearch Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Allows to customize text searching in Avalonia.Controls.Primitives.SelectingItemsControl.

public class TextSearch

Inheritance: object -> TextSearch

Methods

GetText Method

Gets the value of the Avalonia.Controls.Primitives.TextSearch.TextProperty attached property from a given Avalonia.Controls.Control.

public string GetText(Avalonia.Interactivity.Interactive control)

Parameters

control Avalonia.Interactivity.Interactive

The control.

Returns

string

The search text.

GetTextBinding Method

Gets the value of the Avalonia.Controls.Primitives.TextSearch.TextBindingProperty attached property from a given Avalonia.Interactivity.Interactive.

public Avalonia.Data.BindingBase GetTextBinding(Avalonia.Interactivity.Interactive interactive)

Parameters

interactive Avalonia.Interactivity.Interactive

The interactive element.

Returns

Avalonia.Data.BindingBase

The search text binding.

SetText Method

Sets the value of the Avalonia.Controls.Primitives.TextSearch.TextProperty attached property to a given Avalonia.Controls.Control.

public void SetText(Avalonia.Interactivity.Interactive control, string text)

Parameters

control Avalonia.Interactivity.Interactive

The control.

text string

The search text to set.

SetTextBinding Method

Sets the value of the Avalonia.Controls.Primitives.TextSearch.TextBindingProperty attached property to a given Avalonia.Interactivity.Interactive.

public void SetTextBinding(Avalonia.Interactivity.Interactive interactive, Avalonia.Data.BindingBase value)

Parameters

interactive Avalonia.Interactivity.Interactive

The interactive element.

value Avalonia.Data.BindingBase

The search text binding to set.

Fields

NameDescription
TextBindingPropertyDefines the TextBinding attached property. The binding will be applied to each item during text search in Avalonia.Controls.Primitives.SelectingItemsControl (such as Avalonia.Controls.ComboBox).
TextPropertyDefines the Text attached property. This text will be considered during text search in Avalonia.Controls.Primitives.SelectingItemsControl (such as Avalonia.Controls.ComboBox). This property is usually applied to an item container directly.

TextBindingProperty Field

Defines the TextBinding attached property. The binding will be applied to each item during text search in Avalonia.Controls.Primitives.SelectingItemsControl (such as Avalonia.Controls.ComboBox).

public Avalonia.AttachedProperty<Avalonia.Data.BindingBase> TextBindingProperty

TextProperty Field

Defines the Text attached property. This text will be considered during text search in Avalonia.Controls.Primitives.SelectingItemsControl (such as Avalonia.Controls.ComboBox). This property is usually applied to an item container directly.

public Avalonia.AttachedProperty<string> TextProperty