The source for Silverlight 2 controls has been released with thousands of unit tests along with the test framework. That said, to develop Silverlight-based applications that use the Silverlight 2 Beta 1 controls, you do not need this source code. Instead, you must install the Silverlight 2 Software Development Kit (SDK) Beta 1. The source code for the Silverlight 2 Beta 1 controls enables you to learn the inner workings of the controls. To get the source code and tests, see Source Code and Unit Tests for Silverlight 2 Beta 1 Controls on Microsoft download site.

The download is useful if you want to extend the controls or use them as a reference implementation when you implement your own controls. Complete unit tests provide additional guidance in developing polished, professional controls.

This download contains the complete source code and unit tests for the Silverlight 2 Beta 1 controls included in System.Windows.Controls.dll, System.Windows.Controls.Extended.dll, and System.Windows.Controls.Data.dll.

The source code for the Silverlight 2 Beta 1 controls includes implementations for the following controls:

  • Button
  • ButtonBase
  • Calendar
  • CheckBox
  • ContentControl
  • DataGrid
  • DatePicker
  • GridSplitter
  • HyperlinkButton
  • ListBox
  • RadioButton
  • RangeBase
  • RepeatButton
  • ScrollViewer
  • Slider
  • ToogleButton
  • ToolTip
  • WatermarkedTextBox