From: Jens Büchert on
Hello NG,

i have an silverlight-app placed in a contentplaceholder on
an aspx website.
I want to make the sl-app transparent.

i tried this:
--------------------------------------------------------------------------------------
<div id="SilverlightControlHost">
<object width="100%" height="100%"
type="application/x-silverlight-2"
data="data:application/x-silverlight-2," >
<param name="source" value="/ClientBin/SLTippspiel.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="allowtransparency" value="true" />
<param name="background" value="#00ffffff" />
<param name="isWindowless" value="true" />
<param name="minRuntimeVersion" value="3.0.40620.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156"
style="text-decoration: none;">
<img
src="http://go.microsoft.com/fwlink/?LinkId=108181"
alt="Get Microsoft Silverlight"
style="border-style: none"/>
</a>
</object>
<iframe id="_sl_historyFrame"
style='visibility:hidden;height:0px;width:0px;border:0px'>
</iframe>
</div>
-------------------------------------------------------------------------

but my background is black.

Thanks for help.


From: Alvin Bruney - ASP.NET MVP on
Have a look at setting the canvas to transparent in the silverlight
application, that should carry to the html page.

--
Vapordan
Shameless Author Plug
ASP.NET 4 by Example only $20
OWC Blackbook www.lulu.com/owc

"Jens Büchert" <JensBchert(a)discussions.microsoft.com> wrote in message
news:0316969B-9FDC-4FE2-BCD0-82288FCC839C(a)microsoft.com...
> Hello NG,
>
> i have an silverlight-app placed in a contentplaceholder on
> an aspx website.
> I want to make the sl-app transparent.
>
> i tried this:
> --------------------------------------------------------------------------------------
> <div id="SilverlightControlHost">
> <object width="100%" height="100%"
> type="application/x-silverlight-2"
> data="data:application/x-silverlight-2," >
> <param name="source" value="/ClientBin/SLTippspiel.xap"/>
> <param name="onerror" value="onSilverlightError" />
> <param name="allowtransparency" value="true" />
> <param name="background" value="#00ffffff" />
> <param name="isWindowless" value="true" />
> <param name="minRuntimeVersion" value="3.0.40620.0" />
> <param name="autoUpgrade" value="true" />
> <a href="http://go.microsoft.com/fwlink/?LinkID=149156"
> style="text-decoration: none;">
> <img
> src="http://go.microsoft.com/fwlink/?LinkId=108181"
> alt="Get Microsoft Silverlight"
> style="border-style: none"/>
> </a>
> </object>
> <iframe id="_sl_historyFrame"
> style='visibility:hidden;height:0px;width:0px;border:0px'>
> </iframe>
> </div>
> -------------------------------------------------------------------------
>
> but my background is black.
>
> Thanks for help.
>
>