Silverlight 3 Out of Browser Feature
来源:互联网 发布:淘宝购物车流量来源 编辑:程序博客网 时间:2024/04/29 06:50
Silverlight 3 - Running Out Of Browser Apps on the Macintosh
在浏览器外运行Silverlight程序
注:当Silverlight程序安装到本地后,如果无法直接运行,则需要在程序图标上点击右键—运行方式—以超级用户来运行此程序即可打开,如果以受限制的方位运行此程序则可能打不开此程序。
One of the most requested features of Silverlight has been an out of browser experience. This is now possible with Silverlight 3. You can configure Silverlight based applications so that users can install them from their host web pages and run them outside the browser. When an application is properly configured, Silverlight displays an install option on its right-click menu. You can also provide your own UI for installation to supplement or replace the right-click option. This article will focus on how to set up your application so that it can be installed and ran outside of the browser.
To begin with open Visual Studio 2008 and choose File > New > Project > Silverlight > Silverlight Application. To enable the application to run out of the browser, all you need to do is right click on the project and choose Properties. The project properties window will appear. You must select Enable running application out of the browser:
Configuration
To configure the out of browser settings, click the Out-of-Browser Settings button:
The screen above allows you to set a title, width and height, a shortcut name that the user can recognize on their desktop or start menu and an icon. The icon you add will be the icon associated with the shortcut. Click OK to save your changes.
Once you have configured your settings, an OutOfBrowserSettings.xml file is created. This is the file that will be compiled into the xap file when you deploy your Silverlight application:
Installation
To install the application run your project. Right click the application and choose Install Hello world! Onto this computer. This causes the following dialog box to appear, which enables the user to specify the location of the installation:
The application name on the right-click menu and in the dialog box corresponds to the shortcut name in the out of browser configuration. The image on the dialog box corresponds to the largest icon in the configuration. If you do not specify any icons in the configuration, the default icon is used, as shown in the example image. Once installed, navigate to the location you installed it and you can click on the icon and run the Silverlight application. Cool!
Uninstall
To uninstall the Silverlight application you must launch the application. While its running, right click and choose Remove this application:
It is important to realise that even though the application is running out of the browser, the application is still subject to the same security sandbox restrictions as ordinary web applications. This is a really cool feature of Silverlight 3. In some upcoming articles I’ll focus on writing Silverlight applications that make use of this feature.
- Silverlight 3 Out of Browser Feature
- Silverlight实例教程 - Out of Browser开篇
- Silverlight Out-Of-Browser 打开网页浏览器
- Silverlight之out of Browser模式
- Silverlight之out of Browser模式
- Silverlight实例教程 - Out of Browser开篇
- Silverlight实例教程 - Out of Browser开篇
- Silverlight实例教程 - Out of Browser开篇
- Data Points : Building An Out-of-Browser Client With Silverlight 3
- Silverlight实例教程 - Out of Browser配置,安装和卸载
- Silverlight实例教程 - Out of Browser的自定义应用
- Silverlight实例教程 - Out of Browser存取本地文件系统
- Silverlight实例教程 - Out of Browser与COM的交互基础
- Silverlight实例教程 - Out of Browser与Office的互操作
- Silverlight实例教程 - Out of Browser的Debug和Notifications窗口
- Silverlight实例教程 - Out of Browser音乐播放器
- Silverlight实例教程 - Out of Browser配置,安装和卸载(转)
- Silverlight实例教程 - Out of Browser与COM互操作实例
- 黄道十二宫(星座)英语名称(Names of the Zodiac)
- 郁闷的SetTimer和Dll写入式拷贝
- tolower
- 请医生
- 关于VC6中突然不能设断点问题的解决方法
- Silverlight 3 Out of Browser Feature
- 足部保健与人体健康
- delphi学习----字符串切割问题(split)
- toupper
- 负载均衡技术全攻略
- 安装ubuntu分区挂载知识介绍
- 在C#中用SQLDMO创建SQL数据库
- 不能访问网站文件夹的问题
- 东芝X01T USB HOST数据线制作方法