Answered by
kazo0
Apr 12, 2023
Replies: 1 comment 14 replies
|
Hi @Lee31416, Those lines should only be required within the MergedDictionaries of your App.xaml. So are you saying you have that in the App.xaml but your custom TextBlock styles still aren't working unless you initialize Material within your TextBlock.xaml file? Would you be able to provide the contents of your App.xaml so maybe I can spot where the issue is? |
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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
MySecondButtonStyledefinition inButton.xamland the app will no longer crashUnoApp21.zip
I'm assuming maybe Windows is trying to do some fancy inlining optimization if you are trying to include a
ResourceDictionarythat only contains one resource definition??