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

Setting background color for AutoCompleteBox

1 Answer 153 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Samadhan
Top achievements
Rank 1
Samadhan asked on 25 May 2018, 02:22 PM

Hi,

I want to set background color of mu autocompletebox as attached file correctback.png but after focusing on autocompletebox it changes background color to default one. So can you please tell me how I can stop changing background color of autocompletebox on set focus to remain same as on lost focus.

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 30 May 2018, 10:03 AM
Hello Samadhan,

Thank you for the attached pictures.

I suppose that you are referring to the border around the RadAutoCompleteBox when it is focused. This is controlled by a VisualStateManager or by a control template trigger(depending on the theme that you are using). In order to prevent this behavior, you can extract and edit the default control template of the RadAutoCompleteBox for the used theme. Then you can delete the MouseOver and Focused VisualStates or remove the IsMouseOver and IsKeyboardFocusWithin ControlTemplate triggers.

I hope you find this helpful.

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
AutoCompleteBox
Asked by
Samadhan
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or