C# .NET 3.5 GUI design

匿名 (未验证) 提交于 2019-12-03 02:47:02

问题:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!