This question is locked. New answers and comments are not allowed.
I can't seem to get the foreground text color to change unless I hardcode a color value directly in the numericTextBox template. Here's what I've narrowed down to (when trying to diagnose why a disabled control doesn't show the text in the disabled font color):
1. I created a copy of the NumericTextBox template and added an explicit property setting of
Foreground="{TemplateBinding Foreground}"
to the "ContentElement" ScrollViewer.
2. Changed the first setter of the NumericTextBox template from:
<Setter Property="Foreground" Value="{ThemeResource TelerikNumericBoxForegroundBrush}" />
to
<Setter Property="Foreground" Value="Magenta" />
No change to the control.
3. Changed the property setting in step 1 to Foreground="Magenta" on the Scrollviewer and the color comes through.
I'm also modifying BorderThickness, which has a similar TemplateBinding on the ScrollViewer and that carries through.
Why is the ScrollViewer Foreground binding not working here?
For what it's worth, I tried the exact same steps with the Background property and it works fine.
1. I created a copy of the NumericTextBox template and added an explicit property setting of
Foreground="{TemplateBinding Foreground}"
to the "ContentElement" ScrollViewer.
2. Changed the first setter of the NumericTextBox template from:
<Setter Property="Foreground" Value="{ThemeResource TelerikNumericBoxForegroundBrush}" />
to
<Setter Property="Foreground" Value="Magenta" />
No change to the control.
3. Changed the property setting in step 1 to Foreground="Magenta" on the Scrollviewer and the color comes through.
I'm also modifying BorderThickness, which has a similar TemplateBinding on the ScrollViewer and that carries through.
Why is the ScrollViewer Foreground binding not working here?
For what it's worth, I tried the exact same steps with the Background property and it works fine.