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

how do I change the caret color ?

1 Answer 181 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 05 Dec 2013, 11:11 AM
I have skinned the Auto Complete box to black then cursor is disappeared, can someone please help me to change the color of the caret to white.

Sharan

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 06 Dec 2013, 01:52 PM
Hi Saravanan,

You could modify the CaretBrush by setting the TextBoxStyle property of the AutoCompleteBox to a custom Style which is BasedOn the default AutoCompleteTextBoxStyle. Afterwards in the custom Style you just need to set the desired properties of the WatermarkTextBox. I have prepared a sample project which demonstrates the exact approach, note that I have used Implicit Styles in order to be able to base on the default style.

Hope this works for you.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
AutoCompleteBox
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or