开发者

How to open a apsx page from SilverLight Application as a modal-dialog?

开发者 https://www.devze.com 2023-01-19 05:19 出处:网络
How can I call an aspx page from a SilverLight application, so that it opens in as a modal dialog and it 开发者_开发知识库blocks interaction with the SL application until the dialog is closed?

How can I call an aspx page from a SilverLight application, so that it opens in as a modal dialog and it 开发者_开发知识库blocks interaction with the SL application until the dialog is closed?

Thanks


You can use the ChildWindow control and set its content to a WebBrowser control pointing to your page's url but it will work in OOB mode only


I would use the Html bridge to call a javascript that opens a new window (a "fake window" like you see in many image galleries these days). You could also add a layer on top of your silverlight content to disable interaction (for example with a grid that block any mouse click). Also with a javascript you can again tell your silverlight app when the "window" is closed.

This will not work OOB of course.

0

精彩评论

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