如果您使用的是大多数人都使用的 Visual Studio,那么这是一个艰难的选择。
WinForms非常适合不需要过多自定义边框、背景等设计的快速项目,因为它使用了 Microsoft 相当旧的表单(它们已经在视觉上进行了很多改进并且明显调整了)它们有很多限制(例如在文本字段等内容上没有填充),但如果您只想要一个具有干净 UI 的常规应用程序,它们仍然看起来不错并且很好。
If you want a dynamic one which is easier to adjust and much more customisable, and also separates design from code using XAML, you definitely want WPF. Sadly you'll need to put in a decent amount of time to learn XAML fluently.
So to sum up, if you want a quick project that looks nice, and you don't want to learn XAML, WinForms
If you want to spend a little longer to make it more visually attractive and customisable (Mostly on the coding end, not the end user's), it's got to be WPF.
Another advantage of WPF is that, like I said, it separates design and code, so you could collaborate with a designer at some point on the future. There's also hard-coded WPF as far as I know, but most people use XAML.
Also, I've never looked this up, but I'd give a good guess it's much easier to get a job with experience in WPF as opposed to WinForms in a professional environment due to the design/code seperation