aharon
aharon

Reputation: 7653

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

Upvotes: 0

Views: 8375

Answers (3)

AnthonyWJones
AnthonyWJones

Reputation: 189555

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

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

Upvotes: 2

Rune Grimstad
Rune Grimstad

Reputation: 36340

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.

Upvotes: 0

Michael Washington
Michael Washington

Reputation: 3085

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

alt text

Upvotes: 0

Related Questions