O'Reilly logo

Visual Basic 2010 Unleashed by Alessandro Del Sole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Playing Media

As in WPF, Silverlight provides its implementation of the MediaElement control that enables media reproduction and streaming from networks. This means that you can interact with the control the same way as in WPF, but you cannot play media files from a local file system for security reasons. Right-click the Silverlight project in Solution Explorer and then select Add New Item. (You could also create a new project from scratch but you need to know how to change the default page.) In the dialog select the Silverlight User Control item template, as shown in Figure 39.5.

Figure 39.5 Adding a new user control.

image

The goal of the example ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required