简体   繁体   English

Silverlight商业应用程序

[英]Silverlight Business Applications

I'm interested in Silverlight Business Applications, and I was wondering if it is useful? 我对Silverlight业务应用程序感兴趣,我想知道它是否有用? I wonder if it is possible to do all my site with Silverlight alone? 我想知道是否可以仅使用Silverlight来完成我的所有网站?

I don't want to use JavaScript, ASP.NET's grids, other controls, HTML, jQuery or Ajax. 我不想使用JavaScript,ASP.NET的网格,其他控件,HTML,jQuery或Ajax。 I only want to build a site like online Banking System or e-commerce site only using Silverlight Is it possible? 我只想使用Silverlight建立像在线银行系统或电子商务网站之类的网站? And I wonder about security and speed concerns? 我想知道有关安全性和速度的问题吗?

All comments are much appreciated! 感谢所有评论!

Sure it's possible to only use Silverlight but your going to miss the advantages of HTML, CSS and JS. 当然可以只使用Silverlight,但是您会错过HTML,CSS和JS的优势。

I would not recommend this. 我不会推荐这个。

You'll still need some kind of server side code. 您仍然需要某种服务器端代码。 Like a Web Service to deal with data. 就像Web服务一样处理数据。

Accessibility 无障碍

There are plenty of tools for blind users to interpret HTML. 有许多盲人解释HTML的工具。 These do not exist for SilverLight. 这些对于SilverLight不存在。

Reinventing the wheel 重新发明轮子

HTML has a lot of mark up and controls build into it. HTML有很多标记,并且内置控件。 CSS has a lot of page layout and UI manipulation build into it. CSS具有很多页面布局,并且内置了UI操作。

Silver Light does not provide alternatives by default because it's meant to be used with HTML / CSS 默认情况下,Silver Light不提供替代方法,因为它应与HTML / CSS一起使用

Mobile support 行动支援

Mobile support is simply easier with HTML/CSS then it is with Silver Light. 使用HTML / CSS比使用Silver Light更加容易获得移动支持。

JavaScript Libraries JavaScript库

There are a lot of JavaScript libraries out there to accomplish certain tasks. 有很多JavaScript库可以完成某些任务。 Silver Light just does not have anywhere near as many libraries and third party code you can rely on. Silver Light几乎没有可以依赖的库和第三方代码。

Cross Platform 跨平台

There is Moon Light which is the open source alternative to silver light that allows you to run silver light applications on Mac and Linux. 月光是银光的开源替代品,使您可以在Mac和Linux上运行银光应用程序。

This is not affiliated with Micro Soft and is therefore not as feature rich or stable. 它不属于Micro Soft,因此不具有丰富的功能或稳定的功能。 More importantly it does not come with any kind of support package like standard Microsoft tools. 更重要的是,它没有附带任何支持包,例如标准的Microsoft工具。

We tried to switch our web sites to Silverlight. 我们试图将我们的网站切换到Silverlight。 It was easier for us as developers. 作为开发人员,这对我们来说比较容易。 As you have to deal with XAML only and it always renders the same way despite the browser you use. 由于只需要处理XAML,尽管使用了浏览器,它也始终以相同的方式呈现。 We didn't change old pages, but started making new pages in Silverlight only. 我们没有更改旧页面,而是仅在Silverlight中开始制作新页面。 After a year or so, users started complaining about Silverlight experience. 大约一年后,用户开始抱怨Silverlight的体验。

Some problems that users were complaining about: 用户抱怨的一些问题:

  • Copy/paste - you can't select Silverlight controls and copy their contents to notepad/email whatever. 复制/粘贴-您无法选择Silverlight控件并将其内容复制到记事本/通过电子邮件发送。
  • Silverlight is not supported by all browsers. 并非所有浏览器都支持Silverlight。 Some users like using our web site on their cell phones. 一些用户喜欢在手机上使用我们的网站。 But Silverlight didn't work for them. 但是Silverlight不适用于他们。
  • Silverlight can be fairly slow if you render a page with a big Height and lots of data. 如果渲染的页面高度很高且数据很多,Silverlight可能会非常慢。 To make it faster we used ScrollBars inside of Silverlight controls. 为了使其更快,我们在Silverlight控件内部使用了ScrollBars。 It solved performance issues, but degraded user experience because of too many scroll bars. 它解决了性能问题,但是由于滚动条过多而降低了用户体验。

Well in the end we switched those pages to asp.net/mvc (html/javascript). 最后,我们将这些页面切换到了asp.net/mvc(html / javascript)。

We decided to use Silverlight pages only when a lot of complicated user interactivity is required on a page or in such cases as showing cool jumping dashboard gadgets and graphs. 我们决定仅在页面上需要大量复杂的用户交互性时或在显示酷炫的仪表板小工具和图形的情况下才使用Silverlight页面。

So, although I am a fan of Silverlight, I would not recommend to have Silverlight only for a web site with a broad audience. 因此,尽管我是Silverlight的粉丝,但我不建议仅将Silverlight用于具有广泛受众的网站。

For banking system it might be usefull for e-commerce it wouldn't be due to site indexing limitations. 对于银行系统,这可能对电子商务有用,这并不是由于网站索引限制所致。 Another thing to consider is how many of your visitors will have silverlight installed. 要考虑的另一件事是,您的访客中将有多少人安装了Silverlight。 You will need some back-end service to provide data for your application. 您将需要一些后端服务来为您的应用程序提供数据。

However silverlight has some advanteges aswell for example it has the power of .net which means you could use linq and what not for paging querying and filtering and also you could the most of the your code base across ASP.net SL for Windows Phone or WPF for windows. 但是Silverlight有一些advanteges藏汉例如,它具有强大功能的,这意味着你可以使用LINQ和什么不能用于分页查询和过滤的,也可能你最横跨ASP.net SL在你的代码库的Windows Phone或WPF的对于Windows。 Silverlight also has isolated strorage , pivot-viewers , data grids, paging and what not . Silverlight还具有隔离的存储空间数据 透视查看器数据网格,分页等等 Overall has good business oriented features, and if you had your hearth set on using silverlight or flash I would recommend flash, but they are not that suitable for making a whole website without any html. 总体来说,它具有良好的面向业务的功能,如果您希望使用Silverlight或Flash,我建议您使用Flash,但它们不适合制作没有任何html的整个网站。 Good luck. 祝好运。

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

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