Replies: 1 comment
-
|
I think ActualThemeVariant is the name if the property. If RequestedThemeVariant is default, it should mirror system settings. I don't know if we can watch it on all platforms yet |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I've been trying to automatically handle the ThemeVariant when system dark mode is enabled or disabled. Currently, I can do this manually with a command and a button in the UI, but I would like this to happen automatically when the system dark mode changes. Is this possible?
I tried the following code in the OnFrameworkInitializationCompleted method in App.xaml.cs, but it only triggers the ColorValuesChanged event when the app starts up; it doesn't trigger when I manually toggle the dark mode settings.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions