There is a lot of activity going on in the Windows UI GitHub repo a huge visual styles revamp for upcoming 2.6 release in line with the upcoming Windows 10 UI overhaul codenamed Sun Valley which is expected to arrive in 2021. If you are as excited as me to try these new control styles, you are in luck, as the latest Windows UI preview NuGet packages already include these new styles and they can be enabled with a simple XAML change for existing WinUI-based apps! First of all, update to the latest Windows UI 2.6 preview from NuGet (you need to check the "Include prerelease" checkbox in NuGet package manager) - I'm using version 2.6.0-prerelease.210113001, but the upcoming release will have a lot more updated styles
If you have an existing WinUI-based app, your App.xaml should already include a reference to
XamlControlsResources resource dictionary. By default, it still uses the "Version1" control resources. To switch to the new ones, add the
Updated: Recently, the API has changed and in future preview (and stable) releases it will be different than originally mentioned in this article. Big thanks to Marcel Wagner who notified me about this! Original text is still available below for posterity.
If you have an existing WinUI-based app, your App.xaml should already include a reference to And that's it! You can launch your app now and you should see it in a whole new light!
XamlControlsResources resource dictionary. By default, it still uses the "2.5" version of visual styles. To switch to the new ones, add the
Version attribute with value