You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
App.xaml resources defined in an inner ResourceDictionary are ignored #1237
kind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platform
Ah I see. The issue may be in the theme resources then. Does defining HomeControlPageBackgroundThemeBrush outside of the theme dictionaries, as a standard StaticResource work ?
Thanks for the repro @NGame1 ! Since your report, we made a few other changes, including the support for ThemeResources, and along with #1818, the scenario should now be working properly.
Just note that until #1766 passes, overriding platform defined styles is not yet possible. If you define your own resources, it will work properly.
kind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platform
Activity
NGame1 commentedon Jul 29, 2019
Any upcomming fix for this issue?
jeromelaban commentedon Jul 29, 2019
Does the workaround help in your context ?
NGame1 commentedon Jul 29, 2019
Yes if it has any other workaround instead of copy-pasting resources in every page and control.
jeromelaban commentedon Jul 29, 2019
The issue here is the
ResourceDictionarynode, if you remove it and place the content directly under the<App.Resources>it should be enough.NGame1 commentedon Jul 29, 2019
Ah, I got it but I think it should not work for me. because I have Theme based resource dictionaries.
jeromelaban commentedon Jul 29, 2019
I see. Then another workaround is to move the resources in a separate file. That way you'll get the same behavior.
NGame1 commentedon Jul 29, 2019
I tried this both in Application.Resources and Page one none of them worked, unfortunately.
jeromelaban commentedon Jul 29, 2019
Then it may be related to the style you're trying to apply. I fail to remember if you had a sample for the specific code ?
NGame1 commentedon Jul 29, 2019
App.xaml
Styles/Generic.xaml
MainPage
jeromelaban commentedon Jul 29, 2019
Ah I see. The issue may be in the theme resources then. Does defining
HomeControlPageBackgroundThemeBrushoutside of the theme dictionaries, as a standardStaticResourcework ?NGame1 commentedon Jul 29, 2019
No it doesn't.
HomeControlApp.zip
NGame1 commentedon Jul 31, 2019
Did you able to find any workaround?
jeromelaban commentedon Oct 11, 2019
Thanks for the repro @NGame1 ! Since your report, we made a few other changes, including the support for ThemeResources, and along with #1818, the scenario should now be working properly.
Just note that until #1766 passes, overriding platform defined styles is not yet possible. If you define your own resources, it will work properly.
fix(ToggleSwitch): Override ToggleSwitch MinWidth (unoplatform#1237)