更新Silverlight ctp到Silverlight beta 1.0
来源:互联网 发布:灰色相关性分析算法 编辑:程序博客网 时间:2024/05/17 06:27
下面是我更新Silverlight ctp到Silverlight beta 1.0的一个纪录,希望对各位同学有帮助。
1、卸载Silverlight ctp 和sdk以及VS template
2、安装Silverlight Beta 1.0 (http://www.microsoft.com/silverlight/install.aspx).
3、安装Microsoft Silverlight 1.0 Beta SDK (http://go.microsoft.com/fwlink/?linkid=89144&clcid=0x409).同时安装 VS template
4、从C:/Program Files/Microsoft SDKs/Silverlight1.0SDK file from拷贝 Silverlight.js替换aghost.js :
5、用Sys.Silverlight.createObject() 替换aghost(). 调用参数也作了相应修改:
WPF/E: new agHost(
"WpfeControlHost", // DIV tag id.
"WpfeControl", // WPF/E control id.
"400px", // Width of rectangular region of WPF/E control in pixels.
"100px", // Height of rectangular region of WPF/E control in pixels.
"#D6D6D6", // Background color of rectangular region of WPF/E control.
null, // SourceElement property value.
"HelloWorld.xaml", // Source property value.
"false", // WindowlessMode property value.
"30", // MaxFrameRate property value.
'myErrorHandler'); // OnError property value -- notice use of single quotes.
Silverlight:
Sys.Silverlight.createObject( "HelloWorld.xaml", // Source property value. WpfeControlHost, // DOM reference to hosting DIV tag. "WpfeControl", // Unique control id value. { // Control properties. width:'400', // Width of rectangular region of control in pixels. height:'100', // Height of rectangular region of control in pixels. inplaceInstallPrompt:false,// Determines whether to display in-place install prompt if invalid version detected. background:'#D6D6D6', // Background color of control. isWindowless:'false', // Determines whether to display control in Windowless mode. framerate:'30', // MaxFrameRate property value. version:'0.9' // Control version to use. }, { onError:'myErrorHandler', // OnError property value -- event handler function name. onLoad:null // OnLoad property value -- event handler function name. }, null); // Context value -- event handler function name.
一些参数和参数的顺序都发生了变化。首先Div tag的没有引号的. 其次只要传递五个参数,第四、五个参数是个javascript object有多个参数。
Tips
1、搜索Xaml文件,去除所有的javascript实例,这个修改主要是现在Silverlight支持多种语言了,不仅仅是Javascript,而Xaml只是描述界面的。
例如:
替换成
2、事件 MouseMove event 作了些修改. 获取x、y坐标现在改成了: args.GetValue("X")
3、 CreateFromXaml method 已经不是Silverlight control object 的, 属于 content object. 因此要wpfeControl.content.createFromXaml("...").替换 wpfeControl.createFromXaml("...")
4、先看看这两篇文章 What's New in Silverlight (1.0 Beta and 1.1 Alpha)? 、 New API for the Silverlight 1.0 Beta.
5、MIX07会议中微软同时发布Silverlight 1.0的Beta测试版与Silverlight 1.1的Alpha测试版。1.0 Beta版已提供Go Live授权,1.1版本还是Alpha,功能虽然强大很多,但是风险挺大。企业用Silverlight 1.0测试版开发产品,可直接上线使用。2007年夏天微软将发布1.0正式版。
- 更新Silverlight ctp到Silverlight beta 1.0
- 更新Silverlight ctp到Silverlight beta 1.0
- 从Silverlight 2 Beta 2升级到Silverlight 2 RC0
- Spread WPF-Silverlight CTP 探秘
- Silverlight 1.0 beta 和1.1 Alpha体验
- Silverlight 2.0 beta 2
- Silverlight 2 beta 2 bug 解决办法 (持续更新中)
- Silverlight 2.0 Beta 1現身
- Silverlight 2.0 Beta控件体系结构
- Silverlight Beta 2 與 RC
- Silverlight 4 Beta正式发布
- Silverlight 4 Beta新特性
- Silverlight
- silverlight
- Silverlight
- silverlight
- Silverlight
- silverlight
- 产品发布
- QNX入门参考
- 如何快速学习和使用ace???
- Struts的ActionForm中不同类型属性的使用方法总结
- 递归和循环
- 更新Silverlight ctp到Silverlight beta 1.0
- Ubuntu终极优化--Feisty Performance - “Fly Like A Butterfly”
- winIDE库函数使用手册
- window 命令
- BLOG 开通啦
- 关于从事IT行业的一些思考
- 我有一个梦想 (I have a Dream)
- 秘密武器
- 小项目一