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

RadNumericBox change color button

4 Answers 60 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 10 Jul 2018, 07:51 PM

i  have a control 

 <my1:RadNumericBox x:Name="rntxtduplopPisoAlcance"   ValueChanged="rntxtFPDCost_ValueChanged" Maximum="9999"></my1:RadNumericBox>

 

by default the color is blue

 

How can I change the color of the buttons ??

 

4 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 10 Jul 2018, 07:58 PM
Hi Diego,

You can learn how to style the different parts in the Telerik Named Brushes for RadNumericBox styling documentation.

If you haven't set any named brushes before, I recommend reading the UI for UWP Telerik Named Brushes article first.

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Diego
Top achievements
Rank 1
answered on 10 Jul 2018, 08:04 PM
no entiendo la documentacino , podrias proporcionarme un ejemplo de como cambiar el color del boton ?
0
Diego
Top achievements
Rank 1
answered on 10 Jul 2018, 08:04 PM
I do not understand the documentation, could you give me an example of how to change the color of the button?
0
Lance | Manager Technical Support
Telerik team
answered on 10 Jul 2018, 08:15 PM
Hi Diego,

The brush names denote what they will change the color of.

In particular, since you want to change the button colors, scroll down to the SpinButton Styling section, you'll see the brush names that you want to change:




If you only want to change the normal state (not pressed), then you can set the values of the following brushes:

TelerikNumericBoxSpinButtonBackgroundBrush 
TelerikNumericBoxSpinButtonForegroundBrush 



Code Examples

If you are asking for direct code examples, you can find them in the Telerik UI for UWP Demos repo. Here's the direct link to the NumericBox examples: https://github.com/telerik/UI-For-UWP-Demos/tree/master/Examples/NumericBox.UWP 

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussion
Asked by
Diego
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Diego
Top achievements
Rank 1
Share this question
or