2010-08-26 34 views

回答

1

將您的Silverlight應用程序中的default.aspx頁面的HTML標記添加到現有應用程序中的.aspx頁面。事情是這樣的:

<object type="application/x-silverlight-2"  
    data="data:application/x-silverlight,"  
    style="position:fixed;height:100%; width:100%;"> 
     <param name="source" value="ClientBin/YourXAPFile.xap"/> 
     <param name="minRuntimeVersion" value="3.0.40624.0" /> 
     <param name="autoUpgrade" value="true" /> 
    <div align="center" style="background-image:url(ClientBin/Icons/install_v1.png);height:100%;background-repeat:no-repeat;background-position:center;background-color:#666;padding:0"> 
     <div style="text-align:center;padding-top:300px;"> 
      <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration: none"> 
       <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" 
        style="border-style: none" /> 
      </a> 
     </div> 
    </div> 
</object> 

您的標記可能略有不同,這取決於你使用的是什麼版本的Silverlight,什麼PARAMS你可能已經添加。如果這適用於您,您可能還想製作一個包含現有ASP.NET Web應用程序和Silverlight應用程序的Visual Studio解決方案,並將Silverlight應用程序添加到Web應用程序Silverlight應用程序列表中。

+0

你能幫我解決相關問題嗎?這是更多的這個問題的擴展:http://stackoverflow.com/questions/3572468/help-with-nokolas-navseven-silverlight-navigation-bar – 2010-08-26 06:15:38

相關問題