简体   繁体   English

Windows 应用程序使用 Silverlight

[英]Windows application using Silverlight

I want to develop a windows based application in silverlight.我想在 silverlight 中开发一个基于 windows 的应用程序。 I went through many articles and every where I found that "Silverlight is for web based application".我浏览了很多文章,每一篇文章都发现“Silverlight 适用于基于 web 的应用程序”。 I don't know whether I am wrong or right, as my superiors told me that in Silverlight5 we can develop Windows based application.我不知道我是对是错,因为我的上级告诉我,在 Silverlight5 中我们可以开发基于 Windows 的应用程序。 Can any body help me to give a clue for how to start.任何机构都可以帮助我提供如何开始的线索。 Any help would be highly appreciated.任何帮助将不胜感激。

Thanks in advance提前致谢

If you mean a Windows based application which can connect with internet you go for Out of Browser application which silverlight supports but if you want simple plain desktop application, there is no point in using Silverlight, WPF would be the right choice in that case. If you mean a Windows based application which can connect with internet you go for Out of Browser application which silverlight supports but if you want simple plain desktop application, there is no point in using Silverlight, WPF would be the right choice in that case.

Look at this article for building an out of browser app using Silverlight.查看 这篇文章,了解如何使用 Silverlight 构建浏览器应用程序。

Silverlight specializes in building rich UI based Web applications and WPF is best for making UI rich applications for Desktop. Silverlight 专门构建基于丰富 UI 的 Web 应用程序和 WPF 最适合为桌面制作 UI 丰富的应用程序。

You can run silverlight apps "Out Of Browser", its just a setting in the config.您可以运行 silverlight 应用程序“Out Of Browser”,它只是配置中的一个设置。 Here's a video with more info: http://www.silverlight.net/learn/videos/all/out-of-browser-experiences/这是一个包含更多信息的视频: http://www.silverlight.net/learn/videos/all/out-of-browser-experiences/

silverlight is a web-based technology that runs on the client machine. silverlight 是在客户端计算机上运行的基于 Web 的技术。 it is, basically, Microsoft's version of Flash.它基本上是微软的 Flash 版本。

Now, that being said, you CAN write silverlight apps that run out of the browser.现在,话虽如此,您可以编写在浏览器之外运行的 silverlight 应用程序。 but, they are not "really" windows apps.但是,它们并不是“真正的” windows 应用程序。 silverlight is a sub-set of WPF. silverlight 是 WPF 的子集。 However, you can also make WPF apps that run in a browser.但是,您也可以制作在浏览器中运行的 WPF 应用程序。 Confused yet?迷茫了吗?

The bottom line is that WPF is for desktop apps and is full-featured with access to the machine resources.底线是 WPF 用于桌面应用程序,功能齐全,可以访问机器资源。

while silverlight is a light-weight version of WPF that is intended to be run in a browser, similar to flash.而 silverlight 是 WPF 的轻量级版本,旨在在浏览器中运行,类似于 flash。 it does not have all the features of a full desktop application due to security model and that sort of thing.由于安全性 model 之类的原因,它不具备完整桌面应用程序的所有功能。

Both have elements that cross into the domain of the other.两者都有跨入对方领域的元素。

Like all good things, the answer is "it depends on what you're trying to do".像所有好事一样,答案是“这取决于你想要做什么”。 If you want an application that can run inside the browser, outside the browser, plus on Windows and Mac then Silverlight is the answer.如果您想要一个可以在浏览器内部、浏览器外部以及 Windows 和 Mac 上运行的应用程序,那么 Silverlight 就是答案。 You also get for free/are restricted by a security sandbox;您还可以免费获得/受到安全沙箱的限制; you can get around this sandbox by requiring additional permissions from the user.您可以通过要求用户提供额外权限来绕过此沙盒。 If you're trying to do something that requires multiple monitor support, access to COM objects, stroke/pen/stylus input, 3D hardware acceleration, or access to a large local file store then WPF is probably the better answer.如果您正在尝试做一些需要多显示器支持的事情,访问 COM 对象、笔画/笔/手写笔输入、3D 硬件加速或访问大型本地文件存储,那么 Z3055DD731D79EAA7189A62F36724E 可能是更好的答案。 Silverlight out of browser applications also have a nice "phone home" feature that will automatically download updates; Silverlight 出来的浏览器应用程序也有一个不错的“手机主页”功能,会自动下载更新; WPF requires you to roll this by hand. WPF 需要您手动滚动。

Some folks have mention XBAPs (running WPF inside of a browser).有些人提到了 XBAP(在浏览器中运行 WPF)。 Stay away from this error prone steaming pile of stuff.远离这种容易出错的热气腾腾的东西。 It's good for demoware, but is not something which you'd want to support.它对演示软件很有用,但不是您想要支持的东西。

You heard right.你没听错。

This is called "out of browser" :这被称为 “浏览器外”

Silverlight-based applications typically run within Web pages, but you can enable users to install them from the Web and run them outside the browser.基于 Silverlight 的应用程序通常在 Web 页面中运行,但您可以允许用户从 Web 安装它们并在浏览器外部运行它们。

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

相关问题 SilverLight应用程序(不是Silverlight业务应用程序)中的Windows身份验证 - Windows authentication in SilverLight Application (not Silverlight Business Application) 在现有应用程序中使用Silverlight - Using Silverlight with Existing Application Windows Phone 7 Silverlight使用会话 - Windows Phone 7 Silverlight using session Silverlight应用程序中的System.Windows.LayoutCycleException? - System.Windows.LayoutCycleException in a silverlight application? Windows Phone 7 Silverlight应用程序MVVM登录 - Windows Phone 7 Silverlight Application MVVM Login Windows Phone 8.1 Silverlight上的可绑定应用程序栏 - Bindable application bar on Windows Phone 8.1 Silverlight 退出Windows Phone 7基于Silverlight Framework的应用程序? - Exit in Windows Phone 7 Silverlight Framework based application? Silverlight可以在WPF Windows应用程序中使用吗? - Is silverlight can be use in wpf windows application? Windows Azure中的Silverlight应用程序的表单身份验证 - Forms Authentication for a Silverlight application in Windows Azure 在Windows Phone 7中将FJCore与Silverlight一起使用时,FieldAccessException - FieldAccessException When Using FJCore with Silverlight for Windows Phone 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM