简体   繁体   English

使用WCF RIA服务的WPF vs Silverlight OOB

[英]WPF vs Silverlight OOB with WCF RIA Services

I know there are other issues involved in any decission when beginning a large project, but my experience in the past has been with SL web based apps (w/ entity framework) where I have found wcf ria services such a time saver, I am wondering what people think about the reasons one might remain with wpf for desktop apps where so much more effort must be expended to match what the ria services provide in SL. 我知道开始大型项目时的决策还涉及其他问题,但是我过去的经验是使用基于SL Web的应用程序(带有实体框架),我发现wcf ria服务可以节省时间,我想知道人们如何考虑将wpf留在台式机应用程序上的原因,必须花更多的精力来匹配SL中ria服务提供的功能。 This project is definitely a data-centric business app. 这个项目绝对是一个以数据为中心的商业应用程序。

Any and all oversvations and experiences would be most welcome. 任何和所有的过度和经验都将受到欢迎。

Thanks, Steve 谢谢,史蒂夫

I may have some insight on your situation, since I am faced with making the same decision right now. 我可能会对您的情况有一些见解,因为我现在正面临同样的决定。 I wrote up a blog post about my experience here: 我在这里写了一篇关于我的经历的博客文章:

http://samuelmueller.com/2010/11/wpf-4-vs-silverlight-4-which-do-you-choose http://samuelmueller.com/2010/11/wpf-4-vs-silverlight-4-which-do-you-choose

To summarize, WPF has one very big advantage over silverlight, especially with data-centric apps: 总而言之,WPF与Silverlight相比有一个很大的优势,尤其是在以数据为中心的应用程序中:

Performance. 性能。

With that being said, the list of negatives is quite daunting, and really makes WPF a hard sell over Silverlight: 话虽这么说,负面的清单还是令人生畏的,这确实使WPF在Silverlight上很难卖出:

  • No support for WCF RIA Services, even with SP1 即使使用SP1,也不支持WCF RIA服务
  • Sub-par validation support, with INofityDataErrorInfo missing 次标准验证支持,缺少INofityDataErrorInfo
  • The WPF toolkit has been practically abandoned, whilst Silverlight toolkit and theming are very much active. WPF工具包实际上已被废弃,而Silverlight工具包和主题设置非常活跃。
  • No Fluid UI 没有流畅的用户界面

If you can live with the performance, it seems like Silverlight is the more productive and compelling choice, at least until MS makes some effort into leveling the two platforms. 如果可以忍受这种性能,至少在MS努力使这两个平台达到平衡之前,Silverlight似乎是更具生产力和吸引力的选择。

The thing is, Microsoft seemed to have developped WPF at the beginning, but failed to really keep it fresh. 问题是,微软似乎在一开始就开发了WPF,但未能真正使它保持最新。 On the other hand, they are working on improving Silverlight, releasing new version almost every years. 另一方面,他们正在改进Silverlight,几乎每年都发布新版本。

I still like WPF over typical windows forms and find that not having RIA services isn't much of a problem since you can still access databases the way I am used in normal Windows Form. 我仍然喜欢WPF,而不是典型的Windows窗体,发现没有RIA服务并不是什么大问题,因为您仍然可以像在普通Windows窗体中一样使用数据库来访问数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM