Customizing Theme Colors in WinUI3 Applications
Changing Theme at Runtime
Setting the application theme programmatically is straightfowrard:
rootElement.RequestedTheme = ElementTheme.Dark;
This produces the same result as setting RequestedTheme="Dark" directly on a XAML element. However, there are important limitations:
Custom colors defined within a page cannot be overridden
Tit ...
Posted on Sun, 19 Jul 2026 17:04:06 +0000 by webster08