如何将Silverlight集成到ASPX中? [英] How to integrate silverlight into aspx?

查看:81
本文介绍了如何将Silverlight集成到ASPX中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在已经创建了一个Silverlight应用程序,我想将其嵌入到我的aspx页面中.是否有任何视频教程可以解释如何将Silverlight集成到aspx页面中?

I have created a Silverlight application now I want to embed it into my aspx page. Is there any video tutorial for this, which explains how to integrate silverlight in aspx page?

推荐答案

在您的Web项目中,请确保已包含对silverlight应用程序的引用,以便.xap文件位于clientbin文件夹中.

In your web project, make sure you've included a reference to the silverlight application so the .xap file will be in the clientbin folder.

右键单击您的Web项目,然后选择属性".选择左侧的Silverlight应用程序选项卡.单击添加...按钮,然后选择您现有的Silverlight项目.另外,选中添加引用该控件的测试页面"复选框,VS将包括一个新的.ASPX页面,该页面具有用于引用Silverlight控件的代码.

Right-click on your web project and select Properties. Select the Silverlight Applications tab on the left. Click the Add... button and select your existing Silverlight project. Also, check the box that says, "Add a test page that references the control" and VS will include a new .ASPX page that will have the code to reference the Silverlight control.

注意:这假定silverlight项目和Web项目在同一解决方案中.我想他们是..

Note: this assumes the silverlight project and the web project are in the same solution. I assume they are..

这篇关于如何将Silverlight集成到ASPX中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆