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

How to disable the visual style?

1 Answer 209 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Ivan Zlatanov
Top achievements
Rank 1
Ivan Zlatanov asked on 25 Apr 2015, 01:59 PM

In the template of this control, is a rectangle which represents the focused style of the element (Name=FocusVisual). Unlike other controls this cannot be disabled through style properties and the template must be overridden, which is unfortunate.

 Can you suggest what I can do, not involving overriding the template, in order to remove this focus style? At least, shouldn't the stroke of the rectangle be a binding on the border of the control?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 28 Apr 2015, 07:41 AM
Hello Ivan,

I'm afraid that the only way to achieve the desired approach is to modify the control template of RadNumericUpDown. At the moment focused state of RadNumericUpDown is designed to be always 1px and it is not template bound. We will consider your suggestion to add TemplateBinding for our control's focus state in order to make its customization easier.

Let me know if you need any further help with template customization.

Regards,
Masha
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
NumericUpDown
Asked by
Ivan Zlatanov
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or