可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I'm looking for some programming guides to C# GUI design. I come from the Java camp (where I can happily hand-code Swing/AWT GUIs) and thus don't have a clue where to start :(
Also, what difference (if any) is there between the Windows Presentation Foundation and WinForms?
回答1:
Chris Sells seems to be 'dah man' with regard to Windows Forms and WPF:
http://www.sellsbrothers.com/writing/
http://www.sellsbrothers.com/writing/wfbook
http://www.sellsbrothers.com/writing/wpfbook
Also well taking a look at Charles Petzold as well:
http://www.charlespetzold.com/winforms/index.html
MS also have a heap of stuff related to design guidelines and usability from a windows perspective:
http://msdn.microsoft.com/en-us/library/aa152962.aspx
回答2:
Windows Presentation Foundation is a vector-based system that is part of .NET 3.0. It allows you to define your UI in XAML, and can do all sorts of animation, 3D, etc. very easily. It's much newer and still being evalulated by a lot of folks.
Windows Forms is a wrapper over older windows UI classes (Win32/MFC or whatever). It came with .NET 1.0 and uses C# to define all the UI and its layout. It's the tried and true UI method.
回答3:
WPF is a totally a different and a new way to look in to the UI architecting and implementation. The cool concept of collaborative development by a designer and C# developer is a biggest advantage(XAML markup actually gives this ability). When you develop a control/UI it will be in a 'lookless' manner and Designer/Integrator can take that same project(XAML) and style it for a greater look and feel. So in short WPF or Silverlight is a paradign shift in the way we do winforms development.
So .NET3.5 UI design can be done in two ways. 1) Winforms way 2) WPF-XAML way. I think for a futuristic and modern UI you definitely need WPF than winforms.
回答4:
Actually you will probably be more comfortable with hand-coding WPF with your background, I also have done my share of swing interfaces with Java and, although winforms makes it really easy to draw up an interface, I was able to get into WPF quickly because a lot of the layout concepts were the same as Java. Some winforms-only programmers really struggle getting into WPF because of the different layout paradigm.
回答5:
No mention of GUI design would be complete without mention of Alan Coopers About Face although at first glance it looks out of date (most of the screenshots are windows 3.1) its content is still valid today