silverlight   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Silverlight 3 Beta版的变化大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

首先你需要下载Microsoft Web Platform Installer 2.0 Beta 下载完后启动安装包,它会去获取最新的网络安装包信息 我惊喜的发现Silverlight 3 Tools for Visual studio 2008 SP1 Beta已经可以下载了 其详细信息如下图所示,并和Silverlight 2 Tools比较,发现Silverlight 3 Tools的大小反

首先你需要下载Microsoft Web Platform Installer 2.0 Beta
下载完后启动安装包,它会去获取最新的网络安装包信息
我惊喜的发现Silverlight 3 Tools for Visual studio 2008 SP1 Beta已经可以下载了

Silverlight 3 Beta版的变化


其详细信息如下图所示,并和Silverlight 2 Tools比较,发现Silverlight 3 Tools的大小反而小了很多,压缩了1倍多
Silverlight 3 Tools的版本号由Silverlight 2 Tools的9.0.30729.146提升到了9.0.30729.463

Silverlight 3 Beta版的变化

Silverlight 3 Beta版的变化


此外我们还从上面看到了ASP.NET MVC 1.0正式版
这两个Web组件估计都是明天在MIX2009上才发布的
不过不小心通过Microsoft Web Platform Installer 2.0 Beta泄露出来了

Silverlight 3 Beta版的变化


但是目前的问题是简体中文版的VS2008 SP1不能安装(亲身测试过)
Silverlight 3的文档也已经提供了下载
Silverlight 3 Tools For Visual studio Beta也可以从这里下载
英文版的VS2008 sp1上安装过后,Silverlight 3 Runtime版本号是3.0.40307.0

Silverlight 3 Beta版的变化


Silverlight 3包含了三个工程Silverlight Application,Silverlight Navigation Application(这个是最新的),Silverlight Class Library

Silverlight 3 Beta版的变化


创建网站的类型依托现在依托在ASP.NET网站

Silverlight 3 Beta版的变化


ToolBox的控件也增加了很多,包括所有的2含有的控件+Silverlight Toolkit包+少量新控件(比如ErrorSumMary等)

Silverlight 3 Beta版的变化

Silverlight 3 Beta版的变化


Silverlight 3 Beta和Silverlight 2之间的兼容性做的不错,看下下面的 Breaking Change文档就知道了
Ensuring That Your Silverlight 2 Applications Work with the Silverlight 3 Beta ReleaseIntroductionThis topic discusses the changes made to the Silverlight runtime and Silverlight tools between the Microsoft Silverlight 2 and Silverlight 3 Beta. The changes discussed in this article are focused on changes that might cause your older Silverlight-based applications to Now fail or behave differently,not on new features/enhancements for this release.
Note   Corrections/Additions to this document (if any) are listed here.
Contents:
· OpenFileDialog.ShowDialog() can Now only be opened from a user initiated event
· HyperlinkButton Now navigates the entire window and not just the IFRAME that Silverlight is in
· Mouse events inside a Popup Now give positions relative to the pop-up not the entire application
· ReadOnlyObservableCollection moved from System.Windows.Controls.Data.dll to System.Windows.dll
OpenFileDialog.ShowDialog() can Now only be opened from a user initiated eventWho Is Affected: All applications.
SumMary
For security reasons,OpenFileDialog.ShowDialog() may only be called during a user initiated event (MouSELEftButtonDown/Up and KeyDown/Up) or derived user event like clicking a button,checking a checkBox,etc. This brings Silverlight into line with how the other major browsers and plug-ins behave.
HyperlinkButton Now navigates the entire window and not just the IFRAME that Silverlight is inWho Is Affected: Silverlight 2 applications recompiled for Silverlight 3 Beta.
SumMary
In Silverlight 2,HyperlinkButton behaved inconsistently across browsers. In Internet Explorer,HyperlinkButton will navigate the entire browser not just the current IFrame.
In other browsers,HyperlinkButton navigates only the current IFrame,which is consistent with HTML behavior. In Silverlight 3 Beta,we've changed the behavior insidE internet Explorer to match the behavior in other browsers. @H_589_19@mouse events inside a Popup Now give positions relative to the pop-up not the entire applicationWho Is Affected: Silverlight 2 applications recompiled for Silverlight 3 Beta.
SumMary
Suppose you have an element inside a pop-up that listens to mouse events:
[xaml]



[c#]
void OnMouSELEftButtonDown(object sender,MouseButtonEventArgs E)
{
… e.GetPosition(border) ...
}
In Silverlight 2,the coordinates from MouseButtonEventArgs.GetPosition will be relative to the entire Silverlight plug-in,even though the application asked for coordinates relative to the border control (the parameter to GetPosition is supposed to inDicate the frame of referencE). This has been fixed in Silverlight 3 Beta.
ReadOnlyObservableCollection moved from System.Windows.Controls.Data.dll to System.Windows.dllWho Is Affected: Silverlight 2 applications recompiled for Silverlight 3 Beta.
SumMary
This class has been moved into System.Windows.dll so that other APIs in System.Windows.dll can use it. In order to minimize download size impact we've removed some uncommonly used methods.
Note that this will not affect applications compiled for Silverlight 2. If you use ReadOnlyObservableCollection in Silverlight 2,your .xap file will contain a copy of System.Windows.Controls.Data.dll. When Silverlight 3 Beta runs your .xap,it will use the .xap's copy of System.Windows.Controls.Data.dll and that version of ReadOnlyObservableCollection,not the version that ships in the System.Windows.dll of Silverlight 3 Beta.

(转自互联网)

大佬总结

以上是大佬教程为你收集整理的Silverlight 3 Beta版的变化全部内容,希望文章能够帮你解决Silverlight 3 Beta版的变化所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。