Tutorial :open new silverlight window when button click


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...


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

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


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

alt text


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.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »