I know this question has been asked before, but in view of .NET 4开发者_高级运维.0 and the improvements that have gone into making WPF more performant, does the community think that performance is no longer a criteria for choosing one technology over another.
Overall WPF now performs significantly better than equivalent WinForms code in most scenarios, due to several architectural advantages of WPF over WinForms:
- Better use of the GPU
- Retained mode rendering
- More efficient data binding
- More efficient object tree construction
- More efficient RAM usage (using DependencyObject)
- Smaller program code
However both perform sufficiently fast that I don't think performance will be the big reason to choose WPF over WinForms. It will be the ability to create better applications faster.
Game developers and others who need ultimate performance won't be using WPF or WinForms for the critical portions of their UI: They will be programming to Direct3D or even to the hardware.
The editor in Visual Studio 2010 is written in WPF.
I see no performnace issues with the editor, so I am optimistic.
You mean WPF vs GDI(+). There is still nothing faster than win exe produced by compiling GDI+C code.
精彩评论