"key not found" occurs when referring to resource dictionaries in other assembly #27023
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
s/try-latest-version
Please try to reproduce the potential issue on the latest public version
t/bug
Something isn't working
Description
I have a program that uses two resource dictionaries from another library, Color.xaml and Style.xaml, where Style refers to the static resource in Color, and when I refer to them in the main program, I get an error:"Position 21:17. StaticResource not found for key Gray150"TestStyle.zip
Steps to Reproduce
In the second resource dictionary, introduce other dictionaries, such as "Styles/VCheckBox.xaml"
Create a default MAUI project with the default template and reference to library
Create these two resources in App.xaml
Tested write the style directly in the style dictionary is ok:
Link to public reproduction project repository
No response
Version with bug
8.0.100 SR10
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: