With the new bits of Silverlight 2.0 releasing soon, it’s exciting times for developers around the globe. However, it also time to get ramped-up on the new ways. So, let’s quickly dive in and get started. Our objective here is to build a very simple user control which has an preview image and some text, on clicking the image, there is a small animation that renders a media element and allows us to play a video. Hope it will be fun.
Step 1: Creating the project structure: The solution will comprise a Silverlight application and a web application. The Silverlight application has a Silverlight user control, while the web application renders the Silverlight components.
The Silverlight application will automatically prompt you to add a new web application with an attached Silverlight link. If you are not planning to use an already existing web application, select the defaults and click OK. This will add a web application, with a .xap file in the ClientBin directory, which will contain Silverlight related information. The Silverlight application contains a Page.xaml user control by default. We may add other user controls later. The web application will host the Silverlight control inside a Silverlight plug-in. You may notice a web page and an html page were added to the application, by default, to serve as test pages.