Make your Silverlight background transparent

10 Dec

It’s not always that you want your Silverlight application to have a background color. Instead you can use the color from the hosting HTML page – and it’s easy!

In your HTML that hosts the Silverlight object add these parameters and you’re done:

<param name="background" value="transparent" /> 
<param name="windowless" value="true" />

by xamlgeek

2 Responses to “Make your Silverlight background transparent”

  1. Thomas December 10, 2009 at 19:29 #

    These settings will hurt performance.

    Windowless mode is computationally expensive, especially in combination with a transparent plug-in background.

    See the Silverlight blog:

    • Thomas Martinsen December 10, 2009 at 21:04 #

      I agree – sometimes it’s just necessary though and depending on the project it can be acceptable.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: