Different BorderColor while Focused

2 posts, 1 answers
  1. Alwin
    Alwin avatar
    12 posts
    Member since:
    May 2009

    Posted 19 Nov 2009 Link to this post

    Hi guys,

    we want to highlight the currently focused TextBox/MaskedEditBox/ComboBox/MultiColumnCombo, so i thought to use a different BorderColor, but i couldn't find the correct condition... i tried to use this condition: "Telerik.WinControls.RadElement.IsFocused" to set a different BorderColor on the BorderPrimitive, but i think this condition can't be reached because the border never got focus...
    Could you please tell me how to set a different ForeColor to the BorderPrimitive when the TextBoxItem GotFocus?

    Thank you

    Alwin
  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 25 Nov 2009 Link to this post

    Hi Alwin,

    Currently, the only option for you is to set a custom border color programmatically. I am attaching a sample project to demonstrate this approach.

    We will consider supporting the desired behavior by themes in one of our next versions.

    Greetings,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top