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

How to remove border colour from NumbricUpDown

6 Answers 175 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Jing
Top achievements
Rank 1
Jing asked on 28 Apr 2011, 01:51 AM
When NumbricUpDown is on focus or button be clicked, the border colour will change to organe by default. Is there anyway I can turn the colour changing off?

Thanks

Jing

6 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 28 Apr 2011, 09:22 AM
Hi Jing,

The RadNumericUpDown control contains in its template a ButtonChrome control , which is responsible for all states. If you edit the RadNumericUpDown control in Blend and find the ButtonChrome control, you can set its RenderMouseOver or RenderFocused properties to False - this will prevent the states from being rendered.

Regards,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jing
Top achievements
Rank 1
answered on 29 Apr 2011, 12:41 AM
Hi,Dani

Thanks for the reply. I set RenderMouseOver and RenderFocused both to False, but it still shows the orange colour when I mouse over or got keboard focus.

Cheers
0
Dani
Telerik team
answered on 29 Apr 2011, 07:55 AM
Hi Jing,

I prepared a sample demonstrating the RadNumericUpDown control with no MouseOver and Focused states for you. I am sorry I did not give you more detailed information. Check the commented out parts of the RadNumericUpDown template, as well as the ButtonChrome removed states.

I hope this helps.

All the best,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jing
Top achievements
Rank 1
answered on 02 May 2011, 03:51 AM
Hi Dani

Thanks for your help. It works mostly what I want it to be, Just one more issue, when I press the increase or decrease buttons, it shows orange background for the button. Do you know how I can change the background for it?

thanks a lot

Jing
0
Accepted
Dani
Telerik team
answered on 02 May 2011, 08:03 AM
Hello Jing,

To change the gradient of the pressed state, you need to generate the Style for the ButtonChrome found in the increase and decrease buttons. The generated ButtonChromeStyle has a Border x:Name="PressedVisual" element. You can change its Background, Border, BorderThickness to your own needs. Again, attached is the modified project.

Best wishes,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jing
Top achievements
Rank 1
answered on 09 May 2011, 02:18 AM
thanks Dani.
Tags
NumericUpDown
Asked by
Jing
Top achievements
Rank 1
Answers by
Dani
Telerik team
Jing
Top achievements
Rank 1
Share this question
or