自己定制Silverlight在客户的的安装方式
2007-12-07 20:47
239 查看
你知道吗,其实Silverlight在客户端的安装方式有两种,一种是直接安装,一种是间接......
当你使用Silverlight建立了网站或者程序的时候,你可以用“inplaceInstallPrompt"属性在建立对象的时候来进行定制。
范列:
function createSilverlight()
{ Sys.Silverlight.createObject(
"plugin.xaml", // Source property value.
parentElement, // DOM reference to hosting DIV tag.
"myControl", // Unique control id value.
{ // Control properties.
width:'1024', // Width of rectangular region of control in pixels.
height:'530', // Height of rectangular region of control in pixels.
inplaceInstallPrompt:false, // 設定客戶端安裝的方式.
background:'white', // Background color of control.
isWindowless:'false', // Determines whether to display control in Windowless mode.
framerate:'24', // MaxFrameRate property value.
version:'0.9' // Control version to use.
},
{
onError:null, // OnError property value -- event handler function name.
onLoad:null // OnLoad property value -- event handler function name.
},
null
); // Context value -- event handler function name.}
像上面这种设定在客户端的表现为
点它就会跑到http://www.microsoft.com/silverlight 使用者可以自己安装并且选择。
如果想使用直接安装模式就把inplaceInstallPrompt设置为true。就会出现以下图形
在这里你点它就是直接安装了,适合不懂电脑的人事使用。
当你使用Silverlight建立了网站或者程序的时候,你可以用“inplaceInstallPrompt"属性在建立对象的时候来进行定制。
范列:
function createSilverlight()
{ Sys.Silverlight.createObject(
"plugin.xaml", // Source property value.
parentElement, // DOM reference to hosting DIV tag.
"myControl", // Unique control id value.
{ // Control properties.
width:'1024', // Width of rectangular region of control in pixels.
height:'530', // Height of rectangular region of control in pixels.
inplaceInstallPrompt:false, // 設定客戶端安裝的方式.
background:'white', // Background color of control.
isWindowless:'false', // Determines whether to display control in Windowless mode.
framerate:'24', // MaxFrameRate property value.
version:'0.9' // Control version to use.
},
{
onError:null, // OnError property value -- event handler function name.
onLoad:null // OnLoad property value -- event handler function name.
},
null
); // Context value -- event handler function name.}
像上面这种设定在客户端的表现为
点它就会跑到http://www.microsoft.com/silverlight 使用者可以自己安装并且选择。
如果想使用直接安装模式就把inplaceInstallPrompt设置为true。就会出现以下图形
在这里你点它就是直接安装了,适合不懂电脑的人事使用。
相关文章推荐
- 搭建自己的iOS内测分发平台[以无线方式安装企业内部应用 ]
- 在windows和Linux上安装ImageMagick与jmagick,Maven配置、Java图片压缩代码(整理网上、结合自己情况、编写出来的新安装方式)
- 人脸表情识别——定制自己的数据加载方式
- 用Remastersys定制自己的Ubuntu安装光盘
- 用Remastersys定制自己的Ubuntu安装光盘
- 以set up方式安装使用自己写的java gui程序
- 在windows和Linux上安装ImageMagick与jmagick,Maven配置、Java图片压缩代码(整理网上、结合自己情况、编写出来的新安装方式)
- 在silverlight中定制自己的MessageBox(消息框)
- 用 Remastersys定制自己的Ubuntu安装光盘
- 在silverlight中定制自己的MessageBox(消息框) 推荐
- [安装部署]如何让用户自己选择是否在桌面创建快捷方式
- 用REMASTERSYS定制自己的UBUNTU安装光盘
- LED灯带工程安装成本计算三步骤   LED灯带主要是用于装饰,由于对灯带不是很了解,因此有很多客户会在计算工程报价的时候漏掉一些环节,给自己增加了一些不必要的成本。下面就分享一下如何计算灯带的工程安
- 用REMASTERSYS定制自己的UBUNTU安装光盘
- 安装外部的maven依赖到自己的本地仓库,通过mvn命令的方式
- 定制自己Linux发行版(ISO):向安装程序添加自定义软件包
- Android Studio 中两种方式定制自己的代码注释头
- 基于CentOS6定制自己的ISO安装光盘
- 【转】怎样完全定制自己的debian 6.0 安装 iso