Add elements to a XAML document in a Silverlight project

This page applies to Silverlight 1 projects only

You add elements to a XAML document in a Microsoft Silverlight 1.0 project just as you do when you add elements to a XAML document in a Windows Presentation Foundation project. The only difference is that you are limited to the following list of controls that are supported by Silverlight 1.0:

  • Canvas

  • Ellipse

  • Image

  • MediaElement

  • Rectangle

  • TextBlock

  • Path elements that can be drawn on the artboard using the Pen and Pencil tools

Some elements require JavaScript code to implement their full functionality in your Silverlight 1.0 application, such as adding events to respond to button clicks. For an example, see Create a button that controls a storyboard in a Silverlight application.

To add elements to a XAML document in a Silverlight 1 project

See also

Concepts

Working with objects and properties

Appearance

Transformations