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

[Solved] NumericBox doesn't support alpha channel for foreground color(?)

1 Answer 31 Views
NumericBox for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jim
Top achievements
Rank 1
Jim asked on 23 Feb 2015, 06:39 PM
I've been trying to theme the RadNumericBox and NumericTextBox and it seems that the alpha channel is not carried through for the text, but it is for the border.  I've been using opacity to mimic a disabled color using the following DarkTheme example:

<Color x:Key="DefaultDisabledColor">#66FFFFFF</Color>

<!--Disabled State-->
<SolidColorBrush x:Key="TelerikNumericBoxDisabledBackgroundBrush" Color="Transparent"/>
<SolidColorBrush x:Key="TelerikNumericBoxDisabledForegroundBrush" Color="{StaticResource DefaultDisabledColor}"/>
<SolidColorBrush x:Key="TelerikNumericBoxDisabledBorderBrush" Color="{StaticResource DefaultDisabledColor}"/>

In this case, the border is the greyish color I expect, but the text color remains white.  If I change DefaultDisableColor to something garish, like Fuchsia, the text and the border appear with the Fuchsia color, so that's leading me to suspect the alpha channel is somehow dropped when the text is rendered?

1 Answer, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 26 Feb 2015, 09:40 AM
Hello Jim,

Thank you for your detailed report.
We confirm that this is actually the case (there is a bug in the RadNumericBox control), which prevents the alpha channel for the Foreground color to be properly applied. We will do our best to provide a fix for it in some of our future releases.

Please note that this fix will be applied in the "Telerik UI for Windows Universal" suite, since we no longer support "UI for Windows 8 XAML" one.

Your Telerik points are updated accordingly.

Regards,
Vladislav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
NumericBox for XAML
Asked by
Jim
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
Share this question
or