Declined
Last Updated: 19 Feb 2019 08:31 by ADMIN
Olivier
Created on: 15 Feb 2019 10:32
Category: NumericInput
Type: Bug Report
0
NumericInput : color used is wrong

Hello,

If you take a look to the provided screenshot you'll see what's wrong at first sight.

If you add a numeric input belong other kind of input.

You will see that the numeric input is the only one control to have a style which look like the control is being focused.

 

Current behavior

the NumericInput color is using the accent color for all states. We can't guess whether the control is focused or not.

Expected behavior

the numeric input should have a default color and use the accent color only when focused. Use the default entry style for the entry of the numeric input.

Workaround

you can also expose a numericButtonStyle property or some bindable property to allow us to set the color.

 

Right now, the control is unusable because of its look. Too bad, the implementation behind is nice.

It was better to create my own control which does the same. I use Telerik to avoid that.

 

Have a good day and thanks for your attention.

Best regards

2 comments
ADMIN
Yana
Posted on: 19 Feb 2019 08:14
Hi Olivier,

As Lance explained earlier, the NumericInput color is by design and you could modify it inside the ControlTemplate.  I agree that having an easier way to change the buttons's colors would be a nice feature, so I have updated the status of the related item to "Approved", you could cast your vote and track its status at the link below:
https://feedback.telerik.com/xamarin/1387998-change-the-numericinput-color-button-border-and-button-content

I am also declining the current bug report.

Let me know if any additional questions arise.

Regards,
Yana
Progress Telerik
ADMIN
Lance | Senior Manager Technical Support
Posted on: 18 Feb 2019 18:12
Hello Oliver,

That coloration is part of the default theme, it is intended by design and not a control defect. You can override this in one of two ways:

1. Use the Blue Theme or create a custom theme (the Themes Overview article explains how to accomplish this).
2. (most popular) Use the ControlTemplate and set NumericInputButtonStyle and NumericInputEntryStyle in there.

This KnowledgeBase article will show you the control template's structure. In the ControlTemplate you'll see a style that targets the NumericInputButton type, this is where you can define any style that you like for both buttons.



I was going to change this item to a Feature Request, however, I see that you've already opened a parallel feedback item (#1387998) to add a ButtonStyle and InputStyle properties so that this will be easier to set.

I'll mark this as closed but I have linked the two items together so that the dev team will see the full history more easily.

Regards,
Lance | Technical Support Engineer, Principal
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