This is a migrated thread and some comments may be shown as answers.

Set clear button / search button style

3 Answers 122 Views
AutocompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jakub
Top achievements
Rank 1
jakub asked on 12 Mar 2015, 02:23 PM
Hi there,

I am trying to personalize my control. I need to change image for search and clear. How to achieve that?

<telerikInput:RadAutoCompleteBox x:Name="radAutoCompleteBox" TextWrapping="Wrap" Text="RadAutoCompleteBox" VerticalAlignment="Center" ActionButtonVisibility="Visible" ClearButtonVisibility="Visible" InputScope="PersonalFullName" BorderBrush="#FF27221D" Background="#FF27221D" Foreground="#FFD6C3AD" Margin="0,24,0,0" FontSize="18.667" FontFamily="Segoe WP Light"/>


3 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 17 Mar 2015, 09:55 AM
Hi,

You can change the appearance of these buttons through the RadAutoCompleteBox.ClearButtonStyle and RadAutoCompleteBox.ActionButtonStyle properties.

Please, let me know should you need further assistance.

Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
jakub
Top achievements
Rank 1
answered on 26 Mar 2015, 07:02 AM
Do you have any sample? Ie adding own icon with url
0
Ivaylo Gergov
Telerik team
answered on 30 Mar 2015, 10:36 AM
Hello,

Here's an example:

<input:RadAutoCompleteBox.ActionButtonStyle>
    <Style TargetType="telerikTextBox:TextBoxActionButton">
        <Setter Property="PressedStateImageSource" Value="url1" />
        <Setter Property="RestStateImageSource" Value="url2" />
        <Setter Property="DisabledStateImageSource" Value="url3" />
        <Setter Property="ButtonShape" Value="Image" />
        <Setter Property="ButtonType" Value="Custom" />
    </Style>
</input:RadAutoCompleteBox.ActionButtonStyle>

The style of the ClearButton can be set in a similar manner.

Please, let me know how it goes.

Regards,
Ivaylo Gergov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
AutocompleteBox
Asked by
jakub
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
jakub
Top achievements
Rank 1
Share this question
or