none
Silverlight3和Silverlight2有什么变化? RRS feed

答案

  • Silverlight3.0官方的文档教程
    下载:http://download.microsoft.com/download/3/C/C/3CC847B9-5F5C-4707-B216-600791B9DA5B/silverlight3_beta_docs.zip

    Silverlight 3 运行时版本是3.0.40307.0
    Silverlight 3.0的的控件也增加了很多,加入2.0含有的控件和Toolkit控件和一些新增的SL3控件

    Silverlight 2到Silverlight 3 Beta的变化:

    Ensuring That Your Silverlight 2 Applications Work with the Silverlight 3 Beta Release

    Introduction

    This 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 event

    Who 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 in

    Who 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.

    Mouse events inside a Popup now give positions relative to the pop-up not the entire application

    Who 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]

    <Popup>

    <Border Name="border" MouseLeftButtonDown="OnMouseLeftButtonDown"/>

    </Popup>

    [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.dll

    Who 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.


    My blog: http://blog.csdn.net/dotfun http://dotfun.cnblogs.com

    My contact: QQ:372900288 E-mail:372900288@qq.com msn:sellnet007@hotmail.com

    • 已标记为答案 slfrank 2009年4月9日 2:43
    2009年4月9日 2:42
    版主

全部回复

  • Silverlight3刚出beta版本,,目前的介绍都是英文的或者翻译版的,主要的新功能列表

    http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew

    风云翻译版
    http://social.microsoft.com/Forums/zh-CN/silverlightzhchs/thread/b56e97fa-6b44-4c4d-8649-fc6c65c3a84f
    孟宪会
    2009年4月8日 14:53
    版主
  • 主要亮点应该包括Perspective Transform (3D) support and RIA Service support.

    2009年4月9日 0:23
  • 我那个翻译的比较一般般,先将就看,等我有时间重新整理一下:)

    My blog: http://blog.csdn.net/dotfun http://dotfun.cnblogs.com

    My contact: QQ:372900288 E-mail:372900288@qq.com msn:sellnet007@hotmail.com

    2009年4月9日 2:32
    版主
  • 多谢几位
    再问一下,现在有SL3的教程和书吗?
    2009年4月9日 2:36
  • Silverlight3.0官方的文档教程
    下载:http://download.microsoft.com/download/3/C/C/3CC847B9-5F5C-4707-B216-600791B9DA5B/silverlight3_beta_docs.zip

    Silverlight 3 运行时版本是3.0.40307.0
    Silverlight 3.0的的控件也增加了很多,加入2.0含有的控件和Toolkit控件和一些新增的SL3控件

    Silverlight 2到Silverlight 3 Beta的变化:

    Ensuring That Your Silverlight 2 Applications Work with the Silverlight 3 Beta Release

    Introduction

    This 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 event

    Who 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 in

    Who 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.

    Mouse events inside a Popup now give positions relative to the pop-up not the entire application

    Who 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]

    <Popup>

    <Border Name="border" MouseLeftButtonDown="OnMouseLeftButtonDown"/>

    </Popup>

    [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.dll

    Who 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.


    My blog: http://blog.csdn.net/dotfun http://dotfun.cnblogs.com

    My contact: QQ:372900288 E-mail:372900288@qq.com msn:sellnet007@hotmail.com

    • 已标记为答案 slfrank 2009年4月9日 2:43
    2009年4月9日 2:42
    版主