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

Indicating focus for controls

1 Answer 90 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 20 Mar 2013, 09:27 AM
Using Telerik version 2013.1.220.40

We would like to indicate when controls (TextBox, Dropdownlist, Checkbox etc) has focus, many users use the tab-key and can't see where the cursor is. Is the best way to accieve this by creating a custom theme or just override OnFocus/LostFocus-event for all the controls and set style there?

In the application we let users choose between 5 different themes.

1 Answer, 1 is accepted

Sort by
0
Anton
Telerik team
answered on 22 Mar 2013, 02:45 PM
Hello Anders,

Thank you for writing.

My advice is to try to do this with modification in the themes, because with one modification in the theme of the Text Box you will change the style of all text boxes in your application. But if there are controls that can not be styling through the modification in the theme due lack of state you should styling them with events. So the best approach in this case is to make mix form both ways of customization.

I hope this helps. Should you have any other questions, I will be glad to assist you

Greetings,
Anton
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
Themes and Visual Style Builder
Asked by
Anders
Top achievements
Rank 1
Answers by
Anton
Telerik team
Share this question
or