Share via


Silverlight 2 控件源代码公布

Silverlight 2控件的源代码现在已经可以供公众下载 。 这个是Seema发布的消息:

https://blogs.msdn.com/seema/archive/2009/01/07/published-the-control-source-code-for-silverlight-2-runtime-sdk.aspx

 

We’ve just published the sample source code for the Silverlight 2 Controls as shipped in the runtime and the SDK.

 

Within the RuntimeControls folder, you’ll see a Solution that contains three projects:

1. SilverlightControls – One can edit the source and default control templates of the controls in order to build a DLL containing custom versions of the controls.

2. Controls Sample – One can take the SilverlightControls DLL from #1 and include it in a project such as this. If you press F5, this app will launch displaying the controls created in #1.

3. System.Windows.Design – This project is here largely for reference, it shows how to build a Design dll for VisualStudio and Expression Blend such that your custom controls would display within the toolbox.

Disclaimer: Note that we did take a small amount of changes in the Runtime Controls to get the project to properly build outside of our internal build environment.

 

The source for the following controls was released:

- Managed Runtime Controls:

o ButtonBase

o Button

o HyperlinkButton

o CheckBox

o RadioButton

o ToggleButton

o RangeBase

o ProgressBar

o Slider

o ScrollBar

o Thumb

- SDK classes:

o Calendar

o DatePicker

o DataGrid

o TabControl

o GridSplitter

- Unite Tests for the SDK controls

- Appropriate sub-types (eventargs/ handlers, etc)

Comments

  • Anonymous
    January 08, 2009
    The comment has been removed