내 aspx 페이지에서 두 개를 만듭니다. 첫 번째는 aspx 메뉴를 사용하고 두 번째 패널에서는 Silverlight 객체를 추가하는 것입니다. 하지만 브라우저 하단에는 높이가 100px (약) 인 빈 공간이 있음을 알 수 있습니다. 왜이 공간이 추가 될까요? 그 공간을 제거하는 방법?aspx 페이지의 Silverlight 객체 - 전체 페이지 공간을 차지하지 않음
고지.
샘플 코드 :
<asp:Panel ID="pnlMenu" runat="server">
<table width="100%">
<tr>
<td>
<img id="imgLogo" alt="no image" style="float:left;display:none;height:20px; width:90px;" />
</td>
<td>
<img src="sample.png" alt="no image" style="float: right" />
</td>
</tr>
<tr>
<td>
Code to add menu
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="silverlightControlHost" runat="server" ClientIDMode="Static">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
width="100%" name="silverlight1" id="SLobj" style="margin: 0px; padding: 0px;">
<param name="source" value="Sample.xap" />
<param name="onerror" value="onSilverlightError" />
<param name="background" value="white" />
<param name="initparams" value="clientip=<%= Request.UserHostAddress %>, username=<%= HttpContext.Current.User.Identity.Name %>, StartupMode=HTML" />
<param name="minRuntimeVersion" value="4.0.50401.0" />
<param name="autoUpgrade" value="true" />
<param name="onLoad" value="SilverlightpluginLoaded" />
<param name="culture" value="<%= System.Threading.Thread.CurrentThread.CurrentCulture.Name %>" />
<param name="windowless" value="true" />
<param name="uiculture" value="<%= System.Threading.Thread.CurrentThread.CurrentUICulture.Name %>" />
<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=108181" alt="Get Microsoft Silverlight"
style="border-style: none" />
</a>
</object>
<iframe id="_sl_historyFrame" style='visibility: hidden; height: 0; width: 0; border: 0px'>
</iframe>
</asp:Panel>