# Key Properties

The purpose of this help article is to show you the key properties of **RadAutoCompleteBox** control. The topic includes the following properties:

* [Setting the ItemsSource](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/features/key-properties#setting-the-itemssource)

* [Changing the TextSearchMode](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/features/key-properties#changing-the-textsearchmode)

* [Changing the SelectionMode](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/features/key-properties#changing-the-selectionmode)

* [Setting the TextBoxStyle, BoxesItemTemplate, DropDownItemTemplate properties](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/features/key-properties#setting-the-style-and-template-properties)

* [Setting NoResultsContent, NoResultsContentTemplate properties](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/features/key-properties#setting-noresultscontent-noresultscontenttemplate-properties)

* [Setting WatermarkContent](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/features/key-properties#setting-watermarkcontent)

* [Other properties](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/features/key-properties#other-properties)

## Setting the ItemsSource

The ItemsSource property of **RadAutoCompleteBox** could be set to any collection of items. However, it is recommended to set it to an ObservableCollection. Read [more](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/populating-with-data/binding-to-object).

## Changing the TextSearchMode

The **TextSearchMode** property represents the behavior by which items in the ItemsSource will be filtered. This property can be set to four values - **Contains**, **ContainsCaseSensitive**, **StartsWith**, **StartsWithCaseSensitive**. By default the TextSearchMode property is set to StartsWith.

## Changing the SelectionMode

The **SelectionMode** property represents the behavior by which items will be selected in RadAutoCompleteBox control. This property can be set to two values - **Single**, **Multiple**. By default the SelectionMode property is set to Multiple. For more information, have a look at the [Selection](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/features/selection) article.

## Setting the Style and Template properties

It is possible to customize the way items in the DropDown portion of the control, the TextBox and the selected Items appear by customizing the **DropDownItemTemplate**, **TextBoxStyle** and **BoxesItemTemplate**.

## Setting NoResultsContent, NoResultsContentTemplate properties

With the **NoResultsContent** and **NoResultsContentTemplate** properties of **RadAutoCompleteBox** you could easily add a text or any other content to appear in the drop down whenever the control cannot find any matching items.

> **NoResultsContent** and **NoResultsContentTemplate** properties are available with Telerik UI for WPF version R3 2016 or later.

The following snippet demonstrates how to set **NoResultsContent** to simple text:

**Using NoResultsContent**

```XAML
<telerik:RadAutoCompleteBox ItemsSource="{Binding Countries}" NoResultsContent="No Matches" />
```

And this would be the result:

![WPF RadAutoCompleteBox with No Results Content](https://www.telerik.com/products/wpf/documentation/assets/7e16edbe9c6182e14e9c2d097feccc43/radautocompletebox-features-key-properties-1.png)

For more complex representation you could use **NoResultsContentTemplate** in order to apply a DataTemplate containing the desired layout. The following example shows how to display an icon in front of the text:

**Using NoResultsContentTemplate**

```XAML
<telerik:RadAutoCompleteBox ItemsSource="{Binding Countries}" NoResultsContent="No Matches">
    <telerik:RadAutoCompleteBox.NoResultsContentTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal">
                <Grid  Width="16" Height="16" VerticalAlignment="Center" HorizontalAlignment="Left">
                    <Ellipse Stroke="Red" StrokeThickness="1" />
                    <Path Data="M0,8 L2,8 2,10 0,10 z M0,0 L2,0 2,7 0,7 z" Fill="Red" Stretch="Fill" Margin="7 3" />
                </Grid>
                <TextBlock Text="{Binding}" Margin="3 0" />
            </StackPanel>
        </DataTemplate>
    </telerik:RadAutoCompleteBox.NoResultsContentTemplate>
</telerik:RadAutoCompleteBox>
```

The result would be the following:

![WPF RadAutoCompleteBox with No Results Content Template](https://www.telerik.com/products/wpf/documentation/assets/95a03b3f11153f61ae1fc716ecc8e12c/radautocompletebox-features-key-properties-2.png)

## Setting WatermarkContent

The **WatermarkContent** property specifies the text or any other content to be displayed when RadAutoCompleteBox's **TextBox** is not focused. When in **Single** SelectionMode no item should be selected for the watermark content to be visible.

> caption Custom watermark content

![Custom Watermark Content](https://www.telerik.com/products/wpf/documentation/assets/c12c1bcd0e9533d4e793785b6bc01226/radautocompletebox-features-watermarkcontent.png)

## Other properties

There are some other key properties in RadAutoCompleteBox:

* **MaxDropDownHeight**: Gets or sets the maximum height of the dropdown portion of the AutoCompleteBox control.

* **TextSearchPath**: Gets or sets the property path that is used to get the autocomplete text to filter items.

* **SelectedItem**: Gets or sets the currently selected item into RadAutoCompleteBox.

* **SelectedItems**: Gets or sets a collection containing the currently selected items into RadAutoCompleteBox.

* **HighlightedIndex**: Gets or sets the currently highlighted index in the dropdown portion of the control.

## See Also

* [Overview](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/overview)
* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/getting-started)
* [Selection](https://www.telerik.com/products/wpf/documentation/controls/radautocompletebox/features/selection)
