This is a migrated thread and some comments may be shown as answers.

RADUpload -Silver Light - Issue

1 Answer 14 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Ashwin
Top achievements
Rank 1
Ashwin asked on 08 Jul 2013, 02:01 PM
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

1 Answer, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 08 Jul 2013, 07:16 PM
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

Tags
Upload
Asked by
Ashwin
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Share this question
or