Exemplo n.º 1
0
 public void OpenUrl(string url, string description = null)
 {
     if (!url.StartsWith("asset://"))
     {
         var selector = new BrowserSelector();
         selector.OpenActionComplete += delegate
         {
             Tabs.ClosePopup();
         };
         selector.LinkToOpen = url;
         Tabs.OpenPopup(selector, "Browser selector");
     }
     else
     {
         Browser.BrowserControl web = new Browser.BrowserControl();
         ShowControlAsTab(web, description);
         web.NavigateTo(url);
     }
 }