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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a custom control derived from a Panel. I want to be able to change the theme between Dark and Light.
I've created a ThemedDictionary and I added it to the App.xaml merged dictionaries.
I'm using
ActualThemeChanged
to set the resources, but it never changes.I'm changing the theme using
FrameworkElement.RequestedTheme
andFrameworkElement.ActualTheme
:NOTE: This code works on Uno Platform (Desktop and Wasm)
Am I doing something wrong?
I've added a minimum example to reproduce it.
WinUIThemedResource.zip
Beta Was this translation helpful? Give feedback.
All reactions