Silverlight 2 DataGrid December 2008 Release

Silverlight 2 DataGrid December 2008 Release

Silverlight 2 DataGrid December 2008 Release 於 2008/12/19 發佈,主要更新 DataGrid 控制項的多項問題:

Overview

This version of the DataGrid contains the following improvements over the version that was released in the Silverlight 2 SDK:

  • Almost 30 bugs have been fixed.
  • Rows containing focus no longer disappear when the ItemsSource changes
  • Selection is now preserved when sorting
  • ComboBox and other controls opening a popup no longer end editing mode for the DataGrid
  • Buttons outside the DataGrid work as expected when they are clicked while the DataGrid is in editing mode
  • Improved FrozenColumn behavior.
  • Improved cell currency.
  • Selection is updated at the time when the CurrentCellChanged event is raised

System Requirements

  • Supported Operating Systems: Windows Vista; Windows XP Service Pack 1; Windows XP Service Pack 2; Windows XP Service Pack 3

Microsoft Visual Studio 2008 SP1
Microsoft Silverlight 2
Microsoft Silverlight 2 SDK
Microsoft Silverlight Tools for Visual Studio 2008 SP1


Instructions

To install the Silverlight 2 DataGrid December 2008 Release:

  1. Close all instances of Microsoft Visual Studio.
  2. Delete all cached toolbox items by removing all files beginning with "toolbox" 
    • On Microsoft Windows XP, X:\Documents and Settings\[Username]\Local Settings\Application Data\Local\Microsoft\VisualStudio\9.0\
    • On Microsoft Windows Vista: X:\Users\[Username]\AppData\Local\Microsoft\VisualStudio\9.0\
    • toolbox.tbdtoolbox_reset.tbdtoolboxIndex.tbdtoolboxIndex_reset.tbd
  3. Replace the following assemblies with the ones in this package:
    • %ProgramFiles%\Microsoft SDKs\Silverlight\v2.0\Libraries\Client\System.Windows.Controls.Data.dll
    • %ProgramFiles%\Microsoft SDKs\Silverlight\v2.0\Libraries\Client\System.Windows.Controls.Data.Design.dll
  4. For any existing projects, delete the reference to System.Windows.Controls.Data.dll and then re-add the reference.

而如果你有使用 Silverlight Toolkit December 08 的話,由於該套件是 12/10 釋出,可能會造成一些問題,所以依據 Instructions 的 4. 更新 dll 檔案:

SLDataGrid01

主要是 Samples\Controls.SamplesTesting\Controls.Testing 專案會出現錯誤:

SLDataGrid02 SLDataGrid03

由於 (1) Samples 的 Microsoft.Windows.Controls.Samples.xap (2) Souce 與 Themes 會產生相關的 dll,並不會自動複製新產生的檔案。

SLDataGrid04

所以必須對每個專案動一些手腳:

  1. Samples 的 Controls.Samples 專案屬性,在 Build Events 視窗的 Post-build event command line 輸入:
    xcopy "Microsoft.Windows.Controls.Samples.xap" "..\..\..\Samples\" /D /R /Y
    SLDataGrid05

     
  2. Souce 底下的 Controls、Controls.DataVisualization、Control.Theming、Controls.Input 則要輸入:
    xcopy "$(TargetPath)" "..\..\Binaries\" /D /R /Y
    SLDataGrid06
     
  3. Themes 底下的九個 Themes 專案 BureauBlack、BureauBlue、ExpressionDark、ExpressionLight、RainierOrange、RainierPurple、ShinyBlue、ShinyRed、WhistlerBlue,則要輸入:
    xcopy "$(TargetPath)" "..\..\..\Binaries\Themes\" /D /R /Y
    SLDataGrid07 
     
  4. 執行 Samples\Controls.Samples.html 就可以正常運作囉
    SLDataGrid08