Can't use a binding to a staticresource in a style #4850
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
project/binding 🪢
Categorizes an issue or PR as relevant to the binding engine
Current behavior
Error: Preprocessor directive expected. Code:
In output .cs file:
Expected behavior
Should compile as it does in UWP.
How to reproduce it (as minimally and precisely as possible)
Build enclosed project: UnoApp.zip
You'll see in mainpage.xaml that I can successfully reference the accessor from a staticresource:
<Grid Background="{Binding Source={StaticResource BrandingAccessor}, Path=Branding.InfoButtonBackgroundBrush}">
Just doesn't seem to work when in a style in a resource dictionary
Workaround
None yet.
Environment
Nuget Package:
Nuget Package Version(s):
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?
The text was updated successfully, but these errors were encountered: