how do I change the caret color ?

2 posts, 0 answers
  1. Saravanan
    Saravanan avatar
    5 posts
    Member since:
    Sep 2013

    Posted 05 Dec 2013 Link to this post

    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
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 06 Dec 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top