开发者

Multiple Silverlight Projects in one web app

I开发者_JAVA技巧s it possible to have one MVC application that references / hosts more than one Silverlight project? If so how can I do this?

Thanks for any help in advance!


In the web project properties there is a tab for Silverlight Applications. If you add the Silverlight project there it will be compiled and copied to the ClientBin folder.

Then, in your aspx page just include multiple Silverlight controls.

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
      <param name="source" value="ClientBin/Control1.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>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜