Microsoft Silverlight will reach end of support after October 2021. Learn more.
The Silverlight documentation includes code examples in a few different forms:
Traditional code examples shown within topics. You can copy and paste these examples into your own projects or into new projects to experiment with them.
Links to live, online samples. Live samples are provided to help you fully understand interactive or animated features.
Links to sample downloads. Sample downloads are provided for more complex examples that are difficult to reproduce by copying snippets into new projects.
For an example of a topic that includes a live sample link, see Walkthrough: Creating Your First Silverlight Application.
To view all live samples used by the Silverlight documentation, see the Silverlight SDK sample browser. To view all sample downloads, see the Silverlight SDK page of the MSDN Code Gallery. For each sample download, this page also provides links to the corresponding topic and live sample, where available.