如何将Silverlight Linkbutton与iframe链接起来 [英] How Link a Silverlight Linkbutton with iframe

查看:117
本文介绍了如何将Silverlight Linkbutton与iframe链接起来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在silverlight项目中打开html页面。所以,假设我点击了Silverlight按钮,然后在某种目标网格中打开。也许银光之中的某种iframe还是什么?



例如,我可以使用以下代码在新窗口中打开


HtmlPage.Window。导航(新的Uri("http://yourdomain.net/yourotherTestPage.html")","_ _ newWindow");



但是我想在XMAL网格或画布中打开它。在此先感谢。


Ferdous

解决方案

您可以调用在页面中注册的javascript来打开div或其他DOM元件。
http://msdn.microsoft.com/en-us/library/cc221359(VS.95)的.aspx结果

 Is it possible to open a html page in a silverlight project. So lets say i have a button in silverlight wich i click and then it opens in some kind of target grid. Maybe some kind of Iframe in silverlight or something? 

 

For example, i can open in new window using the following code

HtmlPage.Window.Navigate(new Uri("http://yourdomain.net/yourotherTestPage.html"),"__newWindow");

 

but i wanna open it inside XMAL grid or canvas. Thanks in advance.


Ferdous

解决方案

You can invoke a javascript registered with the page to open a div or other DOM element.

http://msdn.microsoft.com/en-us/library/cc221359(VS.95).aspx


这篇关于如何将Silverlight Linkbutton与iframe链接起来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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