Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > transparent silverlight app in contentplaceholder

Reply
Thread Tools

transparent silverlight app in contentplaceholder

 
 
Jens Büchert
Guest
Posts: n/a
 
      01-25-2010
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;bord er:0px'>
</iframe>
</div>
-------------------------------------------------------------------------

but my background is black.

Thanks for help.


 
Reply With Quote
 
 
 
 
Alvin Bruney - ASP.NET MVP
Guest
Posts: n/a
 
      02-01-2010
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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;bord er:0px'>
> </iframe>
> </div>
> -------------------------------------------------------------------------
>
> but my background is black.
>
> Thanks for help.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MasterPage - ContentPlaceHolder - How to navigate to the ContentPlaceHolder "Child Page" Greg ASP .Net 4 04-17-2006 03:48 PM
MasterPage - ContentPlaceHolder - How to navigate to the ContentPlaceHolder "Child Page" Greg ASP .Net Web Controls 1 03-23-2006 10:17 AM
[asp.net2] Masterpage und ContentPlaceHolder ausrichten Sebastian Meier ASP .Net 1 04-25-2005 10:41 AM
[asp.net2] Masterpage und ContentPlaceHolder ausrichten Sebastian Meier ASP .Net 0 04-23-2005 09:06 PM
master pages contentplaceholder Billy Cormic ASP .Net 3 09-01-2004 03:13 PM



Advertisments