如何将Silverlight应用程序连接到网页? [英] How can i connect my silverlight application in to a webpage?

查看:116
本文介绍了如何将Silverlight应用程序连接到网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Silverlight应用程序包含一个默认的app1.xaml文件,我在其中编写了一些代码进行设计,并且在我的应用程序中创建了另一个app2.xaml文件.
两个.aspx网页,一个是webpage1.aspx,第二个是webpage2.aspx.现在我想将我的第一个app1.xaml文件设计用于webpage1.aspx,将app2.xaml文件用于webpage2.aspx

我怎样才能做到这一点?是否可以通过使用下面的代码来做到这一点

I have one silverlight application contains one default app1.xaml file i wrote some code inside that for design and i have created one another app2.xaml file and in my application
two .aspx webpages are there one is webpage1.aspx and second is webpage2.aspx. now i want to use my first app1.xaml file design for webpage1.aspx and app2.xaml file for webpage2.aspx

how can i do that? Is it possible to do that by using below code

<asp:Silverlight ID="Xaml1" runat="server" 

         Source="~/ClientBin/MySilverlightApp.xap" 

         Width="300" Height="300" />


如果可能的话,我必须这样做吗?


if possible where i have to do this? and how?

推荐答案

如何添加 [
Adding Silverlight to a Web Page by Using HTML or JavaScript[^]

How do I add Silverlight XAP file to an existing ASP.NET Web Page?[^]


这篇关于如何将Silverlight应用程序连接到网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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