开发者

Prism v4 Difference between WPF and Silverlight

We are designing a Line of Business application which will use Prism.

The application will use web services and all the business logic will be encapsulated behind the web services.

What we are wondering is for a standard data entry business application will there be a开发者_如何学Pythonny difference between Silverlight and WPF?


In general if you use standard controls,use MVVM, avoid COM, other windows dependent stuff, it should be OK but it depends:

  1. Basically WPF and Silverlight have different set of controls e.g. Silverlight has great DataFrom entry which is not available with WPF or even simple BusyIndicator. In most cases if control exsist in WPF it's in Silverlight but there are few that are not e.g. Ribbon.
  2. Validation from my point of view is better in Silverlight, you have ValidationSummary Control which is simplifying a lot of things, DescriptionViewer
  3. Want to use different logging mechanism with WPF

In the worst case you will end up with just different XAML's for views and some places with code like that:

#if SILVERLIGHT
    //Code for silverlight
#else
    //Code for WPF
#endif
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜