Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open URI in new TAB (Silverlight)

Tags:

c#

silverlight

Hey SO, is there anyway I can use HtmlPage.Window.Navigate(new Uri(link), "_blank"); to open a URI in a new tab (not new window!) which is in the same instance of Internet Explorer.

Currently using SL3 and it seems that whether its a new tab vs. new window is based on browser options...

Any help? Thanks.

like image 296
NickHalden Avatar asked Jul 28 '10 17:07

NickHalden


1 Answers

You're doing it properly by using "_blank". What that does is opens a new page in either a new tab or window depending on the user's settings:

  • Internet Explorer Settings
  • Firefox
  • Safari

If you want to use a "hack" to get around this use this link as a resource. It basically states that until a browser supports CSS3 you'll have to use a "hack" as a workaround:

  • Internet Explorer -- IWebBrowser2::Navigate2 (use 0x1000 as the second parameter). Note: you have to have FULL TRUST MODE for this to work.
like image 93
myermian Avatar answered Oct 17 '22 13:10

myermian