New to Telerik UI for WPF? Download free 30-day trial

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

        <!-- 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" />                     

See Also

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