Tanmoy
Tanmoy

Reputation: 45632

Opening a new window in WPF

I want to open a new browser window with a specific url (say http://google.com") when I click a button in my wpf application. How to do it?

Upvotes: 1

Views: 3314

Answers (2)

Samuel Jack
Samuel Jack

Reputation: 33270

You can also use a LinkLabel like this.

Upvotes: 0

Thomas Levesque
Thomas Levesque

Reputation: 292385

Process.Start("http://www.google.com");

Or, if you want to open it in the same application :

NavigationWindow window = new NavigationWindow();
window.Source = new Uri("http://www.google.com");
window.Show();

Upvotes: 5

Related Questions