Skip to content

Resource Dictionnary requires adding material resources by hand in order to recognize them #11347

Answered by kazo0
Lee31416 asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, so after more investigation, it seems that this is an issue on Windows when you are trying to add a ResourceDictionary containing a SINGLE style within the ResourceDictionary. So, if you were to just add some bogus dummy second Style to that TextBox.xaml, everything should work fine.

@jeromelaban
Repro app here (notice the crash when trying to run the Windows head, simply uncomment the MySecondButtonStyle definition in Button.xaml and the app will no longer crash

UnoApp21.zip

I'm assuming maybe Windows is trying to do some fancy inlining optimization if you are trying to include a ResourceDictionary that only contains one resource definition??

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@jeanplevesque
Comment options

@jeanplevesque
Comment options

@kazo0
Comment options

kazo0 Apr 12, 2023
Collaborator

@kazo0
Comment options

kazo0 Apr 12, 2023
Collaborator

Answer selected by jeanplevesque
@jeanplevesque
Comment options

@kazo0
Comment options

kazo0 Apr 12, 2023
Collaborator

@jeromelaban
Comment options

@Lee31416
Comment options

Lee31416 Apr 18, 2023
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/uno-material Categorizes an issue or PR as relevant to Uno.Material library
4 participants