Chapter 10: Designing Silverlight Applications

291

5.The MediaElement control has a Source property that you can set with the URL of a movie. Set the Source property of the MediaElement control to http://mschnlnine

.vo.llnwd.net/d1/ch9/8/3/7/0/7/4/OfficeVS10SC1_2MB_ch9.wmv, which is a video that introduces VS 2010.

6.Drag a Button from the Toolbox to the bottom row of the Window in the designer.

7.Set the Name property of the Button to StartStopButton and set the Content property of the Button to Start.

In Figure 10-3, you can see a Grid with two rows. The top row holds a MediaElement control and the bottom row holds a button. The name of the Video control is VideoPlayer and the name of the button is StartStopButton.

Figure 10-3 Playing Silverlight videos

Page 314
Image 314
Microsoft 9GD00001 manual 291, Playing Silverlight videos