TextColor DynamicResource not working in a Style. #20089
Unanswered
DanTravison
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a ContentView embedded my main page and the ContentView has a series of Label, Entry, and Editor controls.
In ConventView.Resources, I've defined Styles for each control. For each control, I have Setter for TextColor and use a DynamicResource referencing a color in my Dark/Light theme.
At runtime, these properties are not being set to the expected value and when I view them in the property explorer, the property value is empty.
If I update the Setter value to use an explicit color, it uses the explicit color.
I don't see any XamlBindingFailiures nor do I see any handled exceptions in the output.
I updated today from 8.0.3 to 8.0.6 but that did not resolve the issue.
Beta Was this translation helpful? Give feedback.
All reactions