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 ...

Get Pro Silverlight 5 in VB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.