O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

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

Combining Silverlight and HTML Content

In Chapter 9, you learned how to create a windowless Silverlight content region. You can then use a transparent background to allow your Silverlight elements to “sit” directly on your HTML page. You can even use partial transparency to let the HTML content show through from underneath your Silverlight content.

This visual integration comes in handy when you use Silverlight code integration. For example, many developers have created custom-skinned media players using Silverlight's standard video window in conjunction with JavaScript-powered HTML elements. These controls can control playback by calling the scriptable methods in your Silverlight application.

When you combine HTML elements and Silverlight elements ...

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