如何在Silverlight中生成弹出窗口? [英] How to generate a popup window in silverlight?

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

问题描述

如何在Silverlight中生成弹出窗口?我重定向到page1.xaml页面,那么代码是什么?

How to generate a popup window in silverlight? I an redirect to page1.xaml page then what is the code?

推荐答案

^ ]


如果要在Silverlight应用程序中生成弹出子窗口,则可以使用Silverlight工具包来创建子窗口.如果要创建浏览器窗口实例来创建弹出窗口,则可以在Silverlight中编写以下代码:


If you want to generate a Popup Child Window inside the Silverlight application, you can use the Silverlight Toolkit to create the Child Window. And if you want to create a browser window instance to create the Popup Window then you can write the following code within Silverlight:


HtmlPage.PopupWindow(new Uri("http://google.com", UriKind.Absolute), "_blank", new HtmlPopupWindowOptions() { Height = 300, Width = 300, Resizeable = false });




这将确保打开一个弹出窗口.您可以根据需要添加更多的HtmlPopupWindowOptions属性.




This will ensure to open up a Popup Window. You can add more HtmlPopupWindowOptions properties as per your need.


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

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