Customize the TextBox

The appearance of the TextBox part of RadAutoSuggestBox can be customized via the TextBoxStyle property of the control.

The TextBoxStyle property expects a Style object with a TargetType set to RadWatermarkTextBox.

Example 1: Setting TextBoxStyle

<telerik:RadAutoSuggestBox>  
    <telerik:RadAutoSuggestBox.TextBoxStyle> 
        <!-- The BasedOn property is required when using NoXaml dlls. Otherwise, you will need to extract and place the whole RadWatermarkTextBoxStyle here --> 
        <Style TargetType="telerik:RadWatermarkTextBox" BasedOn="{StaticResource RadWatermarkTextBoxStyle}"> 
            <Setter Property="Foreground" Value="Red" /> 
            <Setter Property="Opacity" Value="0.5" /> 
            <Setter Property="FontWeight" Value="Bold" />                     
        </Style> 
    </telerik:RadAutoSuggestBox.TextBoxStyle> 
</telerik:RadAutoSuggestBox> 

See Also

In this article
Not finding the help you need? Improve this article