# AutoCompleteBox

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-autocompletebox/

**struct** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
struct AutoCompleteBox
```

Represents a control that provides a text box for user input and a
drop-down that contains possible matches based on the input in the text
box.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L196)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`get_selection_adapter_part`](#function-get_selection_adapter_part)
- [`on_populating`](#function-on_populating)
- [`on_populated`](#function-on_populated)
- [`on_selection_changed`](#function-on_selection_changed)
- [`on_drop_down_opening`](#function-on_drop_down_opening)
- [`on_drop_down_opened`](#function-on_drop_down_opened)
- [`on_drop_down_closing`](#function-on_drop_down_closing)
- [`on_drop_down_closed`](#function-on_drop_down_closed)
- [`on_text_changed`](#function-on_text_changed)
- [`format_value`](#function-format_value)
- [`caret_index_property`](#function-caret_index_property)
- [`placeholder_text_property`](#function-placeholder_text_property)
- [`placeholder_foreground_property`](#function-placeholder_foreground_property)
- [`minimum_prefix_length_property`](#function-minimum_prefix_length_property)
- [`minimum_populate_delay_property`](#function-minimum_populate_delay_property)
- [`max_drop_down_height_property`](#function-max_drop_down_height_property)
- [`is_text_completion_enabled_property`](#function-is_text_completion_enabled_property)
- [`item_template_property`](#function-item_template_property)
- [`clear_selection_on_lost_focus_property`](#function-clear_selection_on_lost_focus_property)
- [`is_drop_down_open_property`](#function-is_drop_down_open_property)
- [`selected_item_property`](#function-selected_item_property)
- [`text_property`](#function-text_property)
- [`search_text_property`](#function-search_text_property)
- [`filter_mode_property`](#function-filter_mode_property)
- [`item_filter_property`](#function-item_filter_property)
- [`text_filter_property`](#function-text_filter_property)
- [`item_selector_property`](#function-item_selector_property)
- [`text_selector_property`](#function-text_selector_property)
- [`items_source_property`](#function-items_source_property)
- [`async_populator_property`](#function-async_populator_property)
- [`max_length_property`](#function-max_length_property)
- [`inner_left_content_property`](#function-inner_left_content_property)
- [`inner_right_content_property`](#function-inner_right_content_property)
- [`value_member_binding_property`](#function-value_member_binding_property)
- [`watermark_property`](#function-watermark_property)
- [`watermark_foreground_property`](#function-watermark_foreground_property)
- [`selection_changed_event`](#function-selection_changed_event)
- [`query_submitted_event`](#function-query_submitted_event)
- [`text_changed_event`](#function-text_changed_event)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`caret_index`](#function-caret_index)
- [`set_caret_index`](#function-set_caret_index)
- [`minimum_prefix_length`](#function-minimum_prefix_length)
- [`set_minimum_prefix_length`](#function-set_minimum_prefix_length)
- [`is_text_completion_enabled`](#function-is_text_completion_enabled)
- [`set_is_text_completion_enabled`](#function-set_is_text_completion_enabled)
- [`item_template`](#function-item_template)
- [`set_item_template`](#function-set_item_template)
- [`minimum_populate_delay`](#function-minimum_populate_delay)
- [`set_minimum_populate_delay`](#function-set_minimum_populate_delay)
- [`max_drop_down_height`](#function-max_drop_down_height)
- [`set_max_drop_down_height`](#function-set_max_drop_down_height)
- [`is_drop_down_open`](#function-is_drop_down_open)
- [`set_is_drop_down_open`](#function-set_is_drop_down_open)
- [`clear_selection_on_lost_focus`](#function-clear_selection_on_lost_focus)
- [`set_clear_selection_on_lost_focus`](#function-set_clear_selection_on_lost_focus)
- [`value_member_binding`](#function-value_member_binding)
- [`set_value_member_binding`](#function-set_value_member_binding)
- [`selected_item`](#function-selected_item)
- [`set_selected_item`](#function-set_selected_item)
- [`text`](#function-text)
- [`set_text`](#function-set_text)
- [`search_text`](#function-search_text)
- [`filter_mode`](#function-filter_mode)
- [`set_filter_mode`](#function-set_filter_mode)
- [`placeholder_text`](#function-placeholder_text)
- [`set_placeholder_text`](#function-set_placeholder_text)
- [`watermark`](#function-watermark)
- [`set_watermark`](#function-set_watermark)
- [`placeholder_foreground`](#function-placeholder_foreground)
- [`set_placeholder_foreground`](#function-set_placeholder_foreground)
- [`watermark_foreground`](#function-watermark_foreground)
- [`set_watermark_foreground`](#function-set_watermark_foreground)
- [`item_filter`](#function-item_filter)
- [`set_item_filter`](#function-set_item_filter)
- [`text_filter`](#function-text_filter)
- [`set_text_filter`](#function-set_text_filter)
- [`item_selector`](#function-item_selector)
- [`set_item_selector`](#function-set_item_selector)
- [`text_selector`](#function-text_selector)
- [`set_text_selector`](#function-set_text_selector)
- [`async_populator`](#function-async_populator)
- [`set_async_populator`](#function-set_async_populator)
- [`items_source`](#function-items_source)
- [`set_items_source`](#function-set_items_source)
- [`max_length`](#function-max_length)
- [`set_max_length`](#function-set_max_length)
- [`inner_left_content`](#function-inner_left_content)
- [`set_inner_left_content`](#function-set_inner_left_content)
- [`inner_right_content`](#function-inner_right_content)
- [`set_inner_right_content`](#function-set_inner_right_content)
- [`selection_adapter`](#function-selection_adapter)
- [`set_selection_adapter`](#function-set_selection_adapter)
- [`has_focus`](#function-has_focus)
- [`query_submitted`](#function-query_submitted)
- [`text_changed`](#function-text_changed)
- [`populating`](#function-populating)
- [`populated`](#function-populated)
- [`drop_down_opening`](#function-drop_down_opening)
- [`drop_down_opened`](#function-drop_down_opened)
- [`drop_down_closing`](#function-drop_down_closing)
- [`drop_down_closed`](#function-drop_down_closed)
- [`selection_changed`](#function-selection_changed)
- [`populate_complete`](#function-populate_complete)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<AutoCompleteBox>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-get_selection_adapter_part"></a>

### get_selection_adapter_part

```rust
fn get_selection_adapter_part(self: &Self, name_scope: &NameScopeRef) -> Option<Rc<dyn ISelectionAdapter>>
```

Returns the `ISelectionAdapter` part, if possible. Otherwise,
`None`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-on_populating"></a>

### on_populating

```rust
fn on_populating(self: &Self, e: &PopulatingEventArgs)
```

Raises the `Populating` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-on_populated"></a>

### on_populated

```rust
fn on_populated(self: &Self, e: &PopulatedEventArgs)
```

Raises the `Populated` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-on_selection_changed"></a>

### on_selection_changed

```rust
fn on_selection_changed(self: &Self, e: &SelectionChangedEventArgs)
```

Raises the `SelectionChanged` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-on_drop_down_opening"></a>

### on_drop_down_opening

```rust
fn on_drop_down_opening(self: &Self, e: &CancelEventArgs)
```

Raises the `DropDownOpening` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-on_drop_down_opened"></a>

### on_drop_down_opened

```rust
fn on_drop_down_opened(self: &Self)
```

Raises the `DropDownOpened` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-on_drop_down_closing"></a>

### on_drop_down_closing

```rust
fn on_drop_down_closing(self: &Self, e: &CancelEventArgs)
```

Raises the `DropDownClosing` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-on_drop_down_closed"></a>

### on_drop_down_closed

```rust
fn on_drop_down_closed(self: &Self)
```

Raises the `DropDownClosed` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-on_text_changed"></a>

### on_text_changed

```rust
fn on_text_changed(self: &Self, e: &TextChangedEventArgs)
```

Raises the `TextChanged` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-format_value"></a>

### format_value

```rust
fn format_value(self: &Self, value: &Option<BoxedValue>) -> Option<String>
```

Converts the specified object to a string by using the binding
specified by the `ValueMemberBinding` property.

Override this method to provide a custom string conversion.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L299)

<a id="function-caret_index_property"></a>

### caret_index_property

```rust
fn caret_index_property() -> &'static StyledProperty<i32>
```

Defines the `CaretIndex` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-placeholder_text_property"></a>

### placeholder_text_property

```rust
fn placeholder_text_property() -> &'static StyledProperty<Option<String>>
```

Defines the `PlaceholderText` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-placeholder_foreground_property"></a>

### placeholder_foreground_property

```rust
fn placeholder_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `PlaceholderForeground` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-minimum_prefix_length_property"></a>

### minimum_prefix_length_property

```rust
fn minimum_prefix_length_property() -> &'static StyledProperty<i32>
```

Identifies the `MinimumPrefixLength` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-minimum_populate_delay_property"></a>

### minimum_populate_delay_property

```rust
fn minimum_populate_delay_property() -> &'static StyledProperty<Duration>
```

Identifies the `MinimumPopulateDelay` property.

A `Duration`: a negative delay, which the reference refuses in its validation
(`IsValidMinimumPopulateDelay`), is not a value of the type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-max_drop_down_height_property"></a>

### max_drop_down_height_property

```rust
fn max_drop_down_height_property() -> &'static StyledProperty<f64>
```

Identifies the `MaxDropDownHeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-is_text_completion_enabled_property"></a>

### is_text_completion_enabled_property

```rust
fn is_text_completion_enabled_property() -> &'static StyledProperty<bool>
```

Identifies the `IsTextCompletionEnabled` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-item_template_property"></a>

### item_template_property

```rust
fn item_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
```

Identifies the `ItemTemplate` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-clear_selection_on_lost_focus_property"></a>

### clear_selection_on_lost_focus_property

```rust
fn clear_selection_on_lost_focus_property() -> &'static StyledProperty<bool>
```

Defines the `ClearSelectionOnLostFocus` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-is_drop_down_open_property"></a>

### is_drop_down_open_property

```rust
fn is_drop_down_open_property() -> &'static StyledProperty<bool>
```

Identifies the `IsDropDownOpen` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-selected_item_property"></a>

### selected_item_property

```rust
fn selected_item_property() -> &'static StyledProperty<Option<BoxedValue>>
```

Identifies the `SelectedItem` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-text_property"></a>

### text_property

```rust
fn text_property() -> &'static StyledProperty<Option<String>>
```

Identifies the `Text` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-search_text_property"></a>

### search_text_property

```rust
fn search_text_property() -> &'static DirectProperty<AutoCompleteBox, Option<String>>
```

Identifies the `SearchText` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-filter_mode_property"></a>

### filter_mode_property

```rust
fn filter_mode_property() -> &'static StyledProperty<AutoCompleteFilterMode>
```

Gets the identifier for the `FilterMode` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-item_filter_property"></a>

### item_filter_property

```rust
fn item_filter_property() -> &'static StyledProperty<Option<AutoCompleteFilterPredicate<Option<BoxedValue>>>>
```

Identifies the `ItemFilter` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-text_filter_property"></a>

### text_filter_property

```rust
fn text_filter_property() -> &'static StyledProperty<Option<AutoCompleteFilterPredicate<Option<String>>>>
```

Identifies the `TextFilter` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-item_selector_property"></a>

### item_selector_property

```rust
fn item_selector_property() -> &'static StyledProperty<Option<AutoCompleteSelector<BoxedValue>>>
```

Identifies the `ItemSelector` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-text_selector_property"></a>

### text_selector_property

```rust
fn text_selector_property() -> &'static StyledProperty<Option<AutoCompleteSelector<Option<String>>>>
```

Identifies the `TextSelector` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-items_source_property"></a>

### items_source_property

```rust
fn items_source_property() -> &'static StyledProperty<Option<ItemsSource>>
```

Identifies the `ItemsSource` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-async_populator_property"></a>

### async_populator_property

```rust
fn async_populator_property() -> &'static StyledProperty<Option<AutoCompleteAsyncPopulator>>
```

Identifies the `AsyncPopulator` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-max_length_property"></a>

### max_length_property

```rust
fn max_length_property() -> &'static StyledProperty<i32>
```

Defines the `MaxLength` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-inner_left_content_property"></a>

### inner_left_content_property

```rust
fn inner_left_content_property() -> &'static StyledProperty<Option<BoxedValue>>
```

Defines the `InnerLeftContent` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-inner_right_content_property"></a>

### inner_right_content_property

```rust
fn inner_right_content_property() -> &'static StyledProperty<Option<BoxedValue>>
```

Defines the `InnerRightContent` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-value_member_binding_property"></a>

### value_member_binding_property

```rust
fn value_member_binding_property() -> &'static StyledProperty<Option<AssignedBinding>>
```

Defines the `ValueMemberBinding` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L533)

<a id="function-watermark_property"></a>

### watermark_property

```rust
fn watermark_property() -> &'static StyledProperty<Option<String>>
```

Defines the `Watermark` property.

> **Deprecated.** Use placeholder_text_property instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L694)

<a id="function-watermark_foreground_property"></a>

### watermark_foreground_property

```rust
fn watermark_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `WatermarkForeground` property.

> **Deprecated.** Use placeholder_foreground_property instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L700)

<a id="function-selection_changed_event"></a>

### selection_changed_event

```rust
fn selection_changed_event() -> &'static RoutedEvent<SelectionChangedEventArgs>
```

Defines the `SelectionChanged` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L704)

<a id="function-query_submitted_event"></a>

### query_submitted_event

```rust
fn query_submitted_event() -> &'static RoutedEvent<AutoCompleteBoxQuerySubmittedEventArgs>
```

Defines the `QuerySubmitted` event: a FerroUI addition after WinUI's
`AutoSuggestBox.QuerySubmitted`, raised when Enter submits the text of the box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L711)

<a id="function-text_changed_event"></a>

### text_changed_event

```rust
fn text_changed_event() -> &'static RoutedEvent<TextChangedEventArgs>
```

Defines the `TextChanged` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L719)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L973)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<Self>
```

Initializes a new instance of the `AutoCompleteBox` class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1017)

<a id="function-caret_index"></a>

### caret_index

```rust
fn caret_index(self: &Self) -> i32
```

Gets or sets the caret index.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1024)

<a id="function-set_caret_index"></a>

### set_caret_index

```rust
fn set_caret_index(self: &Self, value: i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1028)

<a id="function-minimum_prefix_length"></a>

### minimum_prefix_length

```rust
fn minimum_prefix_length(self: &Self) -> i32
```

Gets or sets the minimum number of characters required to be entered
in the text box before the `AutoCompleteBox` displays possible
matches. The default is 1.

If you set `MinimumPrefixLength` to -1, the control will not provide
possible matches. There is no maximum value, but setting it to a
value that is too large will prevent the control from providing
possible matches as well.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1040)

<a id="function-set_minimum_prefix_length"></a>

### set_minimum_prefix_length

```rust
fn set_minimum_prefix_length(self: &Self, value: i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1044)

<a id="function-is_text_completion_enabled"></a>

### is_text_completion_enabled

```rust
fn is_text_completion_enabled(self: &Self) -> bool
```

Gets or sets a value indicating whether the first possible match
found during the filtering process will be displayed automatically
in the text box. The default is `false`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1051)

<a id="function-set_is_text_completion_enabled"></a>

### set_is_text_completion_enabled

```rust
fn set_is_text_completion_enabled(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1055)

<a id="function-item_template"></a>

### item_template

```rust
fn item_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
```

Gets or sets the data template that is used to display the items in
the drop-down portion of the `AutoCompleteBox` control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1061)

<a id="function-set_item_template"></a>

### set_item_template

```rust
fn set_item_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1065)

<a id="function-minimum_populate_delay"></a>

### minimum_populate_delay

```rust
fn minimum_populate_delay(self: &Self) -> Duration
```

Gets or sets the minimum delay after text is typed in the text box
before the control populates the list of possible matches in the
drop-down. The default is zero.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1072)

<a id="function-set_minimum_populate_delay"></a>

### set_minimum_populate_delay

```rust
fn set_minimum_populate_delay(self: &Self, value: Duration)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1076)

<a id="function-max_drop_down_height"></a>

### max_drop_down_height

```rust
fn max_drop_down_height(self: &Self) -> f64
```

Gets or sets the maximum height of the drop-down portion of the
`AutoCompleteBox` control. The default is infinity.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1082)

<a id="function-set_max_drop_down_height"></a>

### set_max_drop_down_height

```rust
fn set_max_drop_down_height(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1086)

<a id="function-is_drop_down_open"></a>

### is_drop_down_open

```rust
fn is_drop_down_open(self: &Self) -> bool
```

Gets or sets a value indicating whether the drop-down portion of the
control is open.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1092)

<a id="function-set_is_drop_down_open"></a>

### set_is_drop_down_open

```rust
fn set_is_drop_down_open(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1096)

<a id="function-clear_selection_on_lost_focus"></a>

### clear_selection_on_lost_focus

```rust
fn clear_selection_on_lost_focus(self: &Self) -> bool
```

Gets or sets a value that determines whether the control clears its
selection after it loses focus.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1102)

<a id="function-set_clear_selection_on_lost_focus"></a>

### set_clear_selection_on_lost_focus

```rust
fn set_clear_selection_on_lost_focus(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1106)

<a id="function-value_member_binding"></a>

### value_member_binding

```rust
fn value_member_binding(self: &Self) -> Option<AssignedBinding>
```

Gets or sets the binding that is used to get the values for display
in the text box portion of the `AutoCompleteBox` control, and to
filter items for display in the drop-down.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1113)

<a id="function-set_value_member_binding"></a>

### set_value_member_binding

```rust
fn set_value_member_binding(self: &Self, value: Option<AssignedBinding>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1117)

<a id="function-selected_item"></a>

### selected_item

```rust
fn selected_item(self: &Self) -> Option<BoxedValue>
```

Gets or sets the selected item in the drop-down. The default is
`None`.

If the `IsTextCompletionEnabled` property is `true` and text typed
by the user matches an item in the `ItemsSource` collection, which
is then displayed in the text box, the `SelectedItem` property will
be a null reference.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1128)

<a id="function-set_selected_item"></a>

### set_selected_item

```rust
fn set_selected_item(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1132)

<a id="function-text"></a>

### text

```rust
fn text(self: &Self) -> Option<String>
```

Gets or sets the text in the text box portion of the
`AutoCompleteBox` control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1138)

<a id="function-set_text"></a>

### set_text

```rust
fn set_text(self: &Self, value: Option<&str>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1142)

<a id="function-search_text"></a>

### search_text

```rust
fn search_text(self: &Self) -> Option<String>
```

Gets the text that is used to filter items in the `ItemsSource` item
collection.

The search text value is typically the same as the `Text` property,
but is set after the text changed event occurs and before the
`Populating` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1152)

<a id="function-filter_mode"></a>

### filter_mode

```rust
fn filter_mode(self: &Self) -> AutoCompleteFilterMode
```

Gets or sets how the text in the text box is used to filter items
specified by the `ItemsSource` property for display in the
drop-down. The default is `AutoCompleteFilterMode::StartsWith`.

Use the `FilterMode` property to specify how possible matches are
filtered. For example, possible matches can be filtered in a
predefined or custom way. `FilterMode` is automatically set to
`Custom` if you set the `ItemFilter` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1170)

<a id="function-set_filter_mode"></a>

### set_filter_mode

```rust
fn set_filter_mode(self: &Self, value: AutoCompleteFilterMode)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1174)

<a id="function-placeholder_text"></a>

### placeholder_text

```rust
fn placeholder_text(self: &Self) -> Option<String>
```

Gets or sets the placeholder or descriptive text that is displayed
even if the `Text` property is not yet set.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1180)

<a id="function-set_placeholder_text"></a>

### set_placeholder_text

```rust
fn set_placeholder_text(self: &Self, value: Option<&str>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1184)

<a id="function-watermark"></a>

### watermark

```rust
fn watermark(self: &Self) -> Option<String>
```

Gets or sets the placeholder or descriptive text that is displayed
even if the `Text` property is not yet set.

> **Deprecated.** Use placeholder_text instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1191)

<a id="function-set_watermark"></a>

### set_watermark

```rust
fn set_watermark(self: &Self, value: Option<&str>)
```



> **Deprecated.** Use set_placeholder_text instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1196)

<a id="function-placeholder_foreground"></a>

### placeholder_foreground

```rust
fn placeholder_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
```

Gets or sets the brush used for the foreground color of the
placeholder text.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1202)

<a id="function-set_placeholder_foreground"></a>

### set_placeholder_foreground

```rust
fn set_placeholder_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1206)

<a id="function-watermark_foreground"></a>

### watermark_foreground

```rust
fn watermark_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
```

Gets or sets the brush used for the foreground color of the
placeholder text.

> **Deprecated.** Use placeholder_foreground instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1213)

<a id="function-set_watermark_foreground"></a>

### set_watermark_foreground

```rust
fn set_watermark_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
```



> **Deprecated.** Use set_placeholder_foreground instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1218)

<a id="function-item_filter"></a>

### item_filter

```rust
fn item_filter(self: &Self) -> Option<AutoCompleteFilterPredicate<Option<BoxedValue>>>
```

Gets or sets the custom method that uses user-entered text to filter
the items specified by the `ItemsSource` property for display in the
drop-down. The default is `None`.

The filter mode is automatically set to `Custom` if you set the
`ItemFilter` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1228)

<a id="function-set_item_filter"></a>

### set_item_filter

```rust
fn set_item_filter(self: &Self, value: Option<AutoCompleteFilterPredicate<Option<BoxedValue>>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1232)

<a id="function-text_filter"></a>

### text_filter

```rust
fn text_filter(self: &Self) -> Option<AutoCompleteFilterPredicate<Option<String>>>
```

Gets or sets the custom method that uses the user-entered text to
filter items specified by the `ItemsSource` property in a text-based
way for display in the drop-down.

The search mode is automatically set to `Custom` if you set the
`TextFilter` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1242)

<a id="function-set_text_filter"></a>

### set_text_filter

```rust
fn set_text_filter(self: &Self, value: Option<AutoCompleteFilterPredicate<Option<String>>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1246)

<a id="function-item_selector"></a>

### item_selector

```rust
fn item_selector(self: &Self) -> Option<AutoCompleteSelector<BoxedValue>>
```

Gets or sets the custom method that combines the user-entered text
and one of the items specified by the `ItemsSource`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1252)

<a id="function-set_item_selector"></a>

### set_item_selector

```rust
fn set_item_selector(self: &Self, value: Option<AutoCompleteSelector<BoxedValue>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1256)

<a id="function-text_selector"></a>

### text_selector

```rust
fn text_selector(self: &Self) -> Option<AutoCompleteSelector<Option<String>>>
```

Gets or sets the custom method that combines the user-entered text
and one of the items specified by the `ItemsSource` in a text-based
way.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1263)

<a id="function-set_text_selector"></a>

### set_text_selector

```rust
fn set_text_selector(self: &Self, value: Option<AutoCompleteSelector<Option<String>>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1267)

<a id="function-async_populator"></a>

### async_populator

```rust
fn async_populator(self: &Self) -> Option<AutoCompleteAsyncPopulator>
```

Gets or sets the asynchronous populator of the drop-down.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1272)

<a id="function-set_async_populator"></a>

### set_async_populator

```rust
fn set_async_populator(self: &Self, value: Option<AutoCompleteAsyncPopulator>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1276)

<a id="function-items_source"></a>

### items_source

```rust
fn items_source(self: &Self) -> Option<ItemsSource>
```

Gets or sets a collection that is used to generate the items for the
drop-down portion of the `AutoCompleteBox` control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1282)

<a id="function-set_items_source"></a>

### set_items_source

```rust
fn set_items_source(self: &Self, value: Option<ItemsSource>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1286)

<a id="function-max_length"></a>

### max_length

```rust
fn max_length(self: &Self) -> i32
```

Gets or sets the maximum number of characters that the
`AutoCompleteBox` can accept. This constraint only applies for
manually entered (user-inputted) text.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1293)

<a id="function-set_max_length"></a>

### set_max_length

```rust
fn set_max_length(self: &Self, value: i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1297)

<a id="function-inner_left_content"></a>

### inner_left_content

```rust
fn inner_left_content(self: &Self) -> Option<BoxedValue>
```

Gets or sets custom content that is positioned on the left side of
the text layout box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1303)

<a id="function-set_inner_left_content"></a>

### set_inner_left_content

```rust
fn set_inner_left_content(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1307)

<a id="function-inner_right_content"></a>

### inner_right_content

```rust
fn inner_right_content(self: &Self) -> Option<BoxedValue>
```

Gets or sets custom content that is positioned on the right side of
the text layout box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1313)

<a id="function-set_inner_right_content"></a>

### set_inner_right_content

```rust
fn set_inner_right_content(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1317)

<a id="function-selection_adapter"></a>

### selection_adapter

```rust
fn selection_adapter(self: &Self) -> Option<Rc<dyn ISelectionAdapter>>
```

Gets the selection adapter used to populate the drop-down with a
list of selectable items.

You can use this property when you create an automation peer to use
with the control or deriving from `AutoCompleteBox` to create a
custom control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1382)

<a id="function-set_selection_adapter"></a>

### set_selection_adapter

```rust
fn set_selection_adapter(self: &Self, value: Option<Rc<dyn ISelectionAdapter>>)
```

Sets the selection adapter used to populate the drop-down with a
list of selectable items.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1388)

<a id="function-has_focus"></a>

### has_focus

```rust
fn has_focus(self: &Self) -> bool
```

Determines whether the text box or drop-down portion of the
`AutoCompleteBox` control has focus.

> **Deprecated.** Use is_keyboard_focus_within instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1437)

<a id="function-query_submitted"></a>

### query_submitted

```rust
fn query_submitted(self: &Self, handler: impl Fn(&Interactive, &AutoCompleteBoxQuerySubmittedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Occurs when Enter submits the text of the box (a WinUI addition, see
`query_submitted_event`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1460)

<a id="function-text_changed"></a>

### text_changed

```rust
fn text_changed(self: &Self, handler: impl Fn(&Interactive, &TextChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Occurs asynchronously when the text in the text box portion of the
`AutoCompleteBox` changes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1523)

<a id="function-populating"></a>

### populating

```rust
fn populating(self: &Self, handler: impl Fn(&PopulatingEventArgs) -> () + 'static) -> Subscription
```

Occurs when the `AutoCompleteBox` is populating the drop-down with
possible matches based on the `Text` property.

If the event is cancelled, by setting the cancel flag of the args,
the control will not automatically populate the selection adapter
contained in the drop-down. In this case, if you want possible
matches to appear, you must provide the logic for populating the
selection adapter.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1541)

<a id="function-populated"></a>

### populated

```rust
fn populated(self: &Self, handler: impl Fn(&PopulatedEventArgs) -> () + 'static) -> Subscription
```

Occurs when the `AutoCompleteBox` has populated the drop-down with
possible matches based on the `Text` property.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1550)

<a id="function-drop_down_opening"></a>

### drop_down_opening

```rust
fn drop_down_opening(self: &Self, handler: impl Fn(&CancelEventArgs) -> () + 'static) -> Subscription
```

Occurs when the value of the `IsDropDownOpen` property is changing
from false to true.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1559)

<a id="function-drop_down_opened"></a>

### drop_down_opened

```rust
fn drop_down_opened(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
```

Occurs when the value of the `IsDropDownOpen` property has changed
from false to true and the drop-down is open.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1570)

<a id="function-drop_down_closing"></a>

### drop_down_closing

```rust
fn drop_down_closing(self: &Self, handler: impl Fn(&CancelEventArgs) -> () + 'static) -> Subscription
```

Occurs when the `IsDropDownOpen` property is changing from true to
false.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1579)

<a id="function-drop_down_closed"></a>

### drop_down_closed

```rust
fn drop_down_closed(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
```

Occurs when the `IsDropDownOpen` property was changed from true to
false and the drop-down is open.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1590)

<a id="function-selection_changed"></a>

### selection_changed

```rust
fn selection_changed(self: &Self, handler: impl Fn(&Interactive, &SelectionChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Occurs when the selected item in the drop-down portion of the
`AutoCompleteBox` has changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L1596)

<a id="function-populate_complete"></a>

### populate_complete

```rust
fn populate_complete(self: &Self)
```

Notifies the `AutoCompleteBox` that the `ItemsSource` property has
been set and the data can be filtered to provide possible matches in
the drop-down.

Call this method when you are providing custom population of the
drop-down portion of the control, to signal the control that you are
done with the population process. Typically, you use it when the
population process is a long-running process and you want to cancel
built-in filtering of the `ItemsSource` items. In this case, you can
handle the `Populating` event and set the cancel flag of its args.
When the long-running process has completed you call
`populate_complete` to indicate the drop-down is populated.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_complete_box/auto_complete_box.rs#L2044)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`AutoCompleteBoxImplExt`](/docs/0.5.0/api/ferroui-controls/trait-autocompleteboximplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<AutoCompleteBox>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`AutoCompleteBoxImpl`](/docs/0.5.0/api/ferroui-controls/trait-autocompleteboximpl/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
