在WPF中创建一个不错的GUI [英] creating a nice GUI in WPF

查看:116
本文介绍了在WPF中创建一个不错的GUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个桌面CAD应用程序,该应用程序本质上应该具有不错的现代GUI. 我正在考虑创建WPF应用程序,以便拥有丰富的用户界面. 有人可以建议我在WPF中设计良好的桌面应用程序GUI框架吗? 我在此视频 http://channel9.msdn.com/posts/Psychlist1972/Pete-at-PDC09-WPF-3d-Awesomeness-with-Tor-and-Robby/ 但不确定他们在应用程序中使用了哪些控件. 有没有人知道他们在那里使用了哪些控件?

I need to create a desktop CAD application which essentially should have a nice modern GUI. I am thinking of creating a WPF application so that I can have a rich user interface. Could some one suggest me a well designed desktop application GUI framework in WPF, please? I found some cool GUI in this video http://channel9.msdn.com/posts/Psychlist1972/Pete-at-PDC09-WPF-3d-Awesomeness-with-Tor-and-Robby/ but not sure of the controls they used in their application. Does any one have an idea which controls did they use there?

WPF中是否有任何属性网格控件?我试图在Windows窗体中使用网格.自定义此网格以满足我的要求似乎很困难.它显示了对象的所有属性,从最基本的类到最衍生的类.

Is there any property grid control in WPF? I tried to use the grid in Windows Forms. Customizing this grid to suit my requirement seems to be difficult. It shows all the properties of the object straight from the very base class to the most derived.

推荐答案

使用WPF,可能有很多可能.由于与Windows窗体不同,WPF可以像HTML一样被模板化和样式化,因此您会发现各种应用程序具有各种各样的外观.实际的设计人员可以轻松带来外观和感觉,而这在Windows Forms中是很难实现的.自然,由于它是如此灵活,因此样式高昂的应用程序的外观将因应用程序而异.

With WPF, a lot is possible. You'll find a wide variety of looks to various applications due to the fact that, unlike Windows Forms, WPF can be templated and styled much like HTML. Actual designers can easily bring a look and feel which is very difficult to accomplish in Windows Forms. Naturally, since it is so flexible, the look of highly styled applications will vary a great deal from application to application.

也就是说,有一些非常好的第三方控制.所有常见的犯罪嫌疑人都有WPF的控制库: Telerik ComponentOne Actipro Devxpress 仅举几例.具体来说, Actipro的属性网格非常好.还有一个开放源代码,我没有评估过,因此无法与之交谈.通过对控件应用预编译的样式,WPF也可以主题化".这里有一些示例主题: http://wpfthemes.codeplex.com/.

That said, there are some very good 3rd party controls. All the usual suspects have control libraries for WPF: Telerik, Infragistics, ComponentOne, Actipro, Devxpress just to name a few. Specifically, Actipro's Property Grid is very nice. There is also an open source one which I haven't evaluated, so can't speak to. WPF can also be "themed" by applying pre-compiled styles to controls. There are example themes found here: http://wpfthemes.codeplex.com/.

最后,直到了解如何分离由WPF绘制和管理的视图以及该视图的逻辑抽象(称为视图模型),WPF的优势才能得到充分发挥.乔什·史密斯(Josh Smith)撰写了一篇有关此模式的出色文章,称为Model-View-ViewModel,在这里: http://msdn.microsoft.com/zh-CN/magazine/dd419663.aspx .

Finally, WPF's strengths are not fully realized until you learn how to separate the view which gets drawn and managed by WPF and the logical abstraction of the view, called the view model. Josh Smith has a great article about this pattern, known as Model-View-ViewModel, here: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx.

这篇关于在WPF中创建一个不错的GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆