transparent silverlight app in contentplaceholder

Discussion in 'ASP .Net' started by Jens Büchert, Jan 25, 2010.

  1. 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.
     
    Jens Büchert, Jan 25, 2010
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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.
    >
    >
     
    Alvin Bruney - ASP.NET MVP, Feb 1, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Billy Cormic

    master pages contentplaceholder

    Billy Cormic, Aug 31, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    591
    Billy Cormic
    Sep 1, 2004
  2. Sebastian Meier
    Replies:
    0
    Views:
    423
    Sebastian Meier
    Apr 23, 2005
  3. Sebastian Meier
    Replies:
    1
    Views:
    907
    TDAVISJR
    Apr 25, 2005
  4. Greg
    Replies:
    4
    Views:
    14,942
    dassyms
    Apr 17, 2006
  5. Greg
    Replies:
    1
    Views:
    228
    Ward Bekker
    Mar 23, 2006
Loading...

Share This Page