June 9, 2010
A question a lot of developers ask when starting to develop in Silverlight is how do we set a transparent background in the silverlight application? This can be useful if you intend to provide a seamless integration with your website and run the Silverlight application object over html content that you want displayed.
This can easily be done by setting background and IsWindowless properties on the silverlight object, like so:
<param name="background" value="#00FFFFFF" /> <param name="windowless" value="true" />
Notice that the background color value sets the transparency by setting the alpha channel to 00 (first two characters of the ARGB hex code).
















1 comment so far
Awesome, this helped me out a bunch, thanks!
September 28th, 2011Add a comment