open new silverlight window when button click

我的梦境 提交于 2019-12-24 21:02:58

问题


I created a Silverlight window and I want it to appear when I press a button. How can I do that? It doesn't has a "show" method...


回答1:


To open a new address in a new window use:-

 HtmlPage.Window.Navigate(new Uri("the address here"), "_blank");



回答2:


see: Silverlight Simplified MVVM Modal Popup http://www.codeproject.com/KB/silverlight/MVVMPopUp.aspx




回答3:


If you want to browse to a new silverlight application hosted in another html page you should use the NavigationService class to accomplish that.

If you on the other hand want to display another view defined in your silverlight application then you should do something like this Silverlight 3 Navigation.



来源:https://stackoverflow.com/questions/2743361/open-new-silverlight-window-when-button-click

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!