开发者

silverlight object border

EDIT: I need to clarify what I'm trying to accomplish. I am popping up a ChildWindow from the application. When the childwindow is displayed and the browser is resized, there are no scrollbars and there is no way to reach parts of the childwindow. The scrollViewer.scrollViewerVisibility=auto suggestion below displays scrollbars but they belong to the main application for which all the controls are disabled when a ChildWindow is displayed.

I'm trying to get the browser to display scrollbars when it is resized smaller than my SL application. I've acheived this by setting width and height for the object tag in the html. The problem is, now a black 1px border appears around the application. I've tried various attributes and styles on the tag and containing tag but cannot get it to 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&a开发者_如何学Cmp;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>


<iframe id="_sl_historyFrame" style="overflow:auto !Important;visibility:hidden;height:0px;width:0px;border:0px"></iframe>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜