Visual styles are off by default
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
The experience when creating a new WPF app and showing a message box is that we get the old-school UI because visual styles are off by default:

compare that to the equivalent code from a new Windows Forms app:

It has always bothered me that the default experience when using WPF is *worse* than for Windows Forms even though WPF is the newer technology. It gives a really bad impression and makes WPF seem unpolished.
Not only that, but it seems like the best workaround is adding some XML in an extra file: https://stackoverflow.com/questions/5289328/wpf-messagebox-window-style
In my opinion the best case scenario would be that this would just work by default, without any code required to opt-in; if anything, there would be an opt-out. However if compatibility is a concern, then there should be a new API introduced to enable this similar to Windows Forms' `Application.EnableVisualStyles` (perhaps a property on `Application`) which would be enabled for all new created projects by including this in the template, just like Windows Forms does.
Contributor guide
Assessment
This issue has not been assessed yet.