Silverlight object border

EDIT: I need to clarify what I'm trying to accomplish. I get ChildWindow out of the application. When a child window is displayed and the browser is resized, there are no scroll bars and it is not possible to find parts of the child window. In the example below, scrollViewer.scrollViewerVisibility = auto shows scrollbars, but they relate to the main application for which all controls are disabled when ChildWindow is displayed.

I am trying to get the browser to display scrollbars when they are changed less than my SL application. I got this by setting the width and height of the object tag in html. The problem is that a 1px black border now appears around the application. I tried various attributes and styles in the tag and contained the tag but cannot make it disappear. Any ideas?

<body>
    <form id="form1" runat="server" style="height:100%">
    <div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="1230" height="830" style="border-style:none">
          <param name="source" value="Silverlight.xap"/>
          <param name="onError" value="onSilverlightError" />
          <param name="background" value="white" />
          <param name="minRuntimeVersion" value="4.0.50401.0" />
          <param name="autoUpgrade" value="true" />
          <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.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>
    </form>
</body>
+3
1
<iframe id="_sl_historyFrame" style="overflow:auto !Important;visibility:hidden;height:0px;width:0px;border:0px"></iframe>
0

Source: https://habr.com/ru/post/1789831/


All Articles