且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建类似Windows7的控件?

更新时间:2023-12-06 12:41:46

不确定"Windows 7"视觉样式的含义是什么...许多Windows 7窗口和控件仍然看起来像我的常规WinForms控件.尽管这也取决于您的Windows设置.
要获得更现代的外观,您可以使用 WPF [ ^ ],但是如果您不习惯这种编程,那将是一个艰难的学习过程.
如果要在WinForms中获得相同的结果,可以创建自己的控件 [ ^ ],但这并不是一件容易的事.许多公司为不同的平台创建了自己的控件库.我目前正在使用 DevExpress WinForms控件 [ ^ ]在工作中,它看起来比标准WinForm控件要好得多.
Not sure what you mean with the "Windows 7" visual style... Many Windows 7 windows and controls still look like regular WinForms controls to me. Although this also depends on your Windows settings.
To get a more modern look and feel you can use WPF[^], but if you are not used to that kind of programming it can be a difficult learning curve.
If you want to get the same results in WinForms you could create your own Controls[^], but that is no easy task. Many companies have created their own Controls library for different platforms. I am currently using DevExpress WinForms Controls[^] at work, which look a lot better than the standard WinForm Controls.