Developer technologies | .NET | .NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I wanted to dynamically switch the theme in my app (https://learn.microsoft.com/en-us/dotnet/maui/user-interface/system-theme-changes?view=net-maui-10.0#set-the-current-user-theme), but realized that the platform-specific UI still has the theme it started with. I tested it with outputting the Application.Current.PlatformAppTheme value and it stayed the same (tested on Windows and Android).
How do I also switch the platform theme dynamically?
Thanks for the help
Arthur