RADUpload -Silver Light - Issue

2 posts, 0 answers
  1. Ashwin
    Ashwin avatar
    1 posts
    Member since:
    Jul 2013

    Posted 08 Jul 2013 Link to this post

    We have a silverlight control (a .xap file) which uses RADUpload. Now we are using this silverlight control on the asp.net page using <object> tag

    The actual issue is we are not able to set a z-index kind of property to this control as this control appears on top of our menu control. We want this control to go in the background (display) when the menu is selected.

    We dont have the source for the xap file, we only have the xap file
  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 08 Jul 2013 Link to this post

    Hi Ashwin,

    The Z-Index ordering trick won't work in all browsers. You can best accomplish your desired result by setting the Windowless parameter to true on the Silverlight object in your webpage's markup. Here is what the parameter looks like: <param name="windowless" value="true" /> see an example below of where it goes within the object.

    <div id="silverlightControlHost">
            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
                <param name="source" value="ClientBin/YOUR_SILVERLIGHT_XAP_FILENAME"/>
                <param name="windowless" value="true"/>
              <param name="onError" value="onSilverlightError" />
              <param name="background" value="white" />
              <param name="minRuntimeVersion" value="5.0.61118.0" />
              <param name="autoUpgrade" value="true" />
              <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.61118.0" style="text-decoration:none">
                  <img src="http://go.microsoft.com/fwlink/?LinkId=161376" 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>


    This should fix your problem.

    Good luck!
    Lancelot

  3. DevCraft banner
Back to Top