當前位置: 首頁>>代碼示例>>C#>>正文


C# WebView.Open方法代碼示例

本文整理匯總了C#中WebKit.WebView.Open方法的典型用法代碼示例。如果您正苦於以下問題:C# WebView.Open方法的具體用法?C# WebView.Open怎麽用?C# WebView.Open使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WebKit.WebView的用法示例。


在下文中一共展示了WebView.Open方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: MainWindow

 public MainWindow()
     : base(Gtk.WindowType.Toplevel)
 {
     Build ();
     webView = new WebView ();
     this.scrolledWebWindow.Add(webView);
     this.text_adress.Text = HOME_PAGE;
     webView.LoadFinished += new LoadFinishedHandler (OnLoadFinished);
     webView.Open (text_adress.Text);
     pathFolderSave = Environment.GetFolderPath (Environment.SpecialFolder.MyMusic);
     downloadList = new DownloadList (this.scrolledListDownlaods);
     downloader = new Downloader (downloadList);
     downloader.SavePath = pathFolderSave;
 }
開發者ID:tifuivali,項目名稱:Mp3-Youtube-Music-Downloader-Mono,代碼行數:14,代碼來源:MainWindow.cs

示例2: Main

        public static void Main(string[] args)
        {
            string url = "http://localhost:8000/testing";

            Console.WriteLine("Loading...");

            Application.Init();
            Window window = new Window ("lolbr");
            window.SetDefaultSize(1024, 500);

            window.Destroyed += delegate (object sender, EventArgs e) {
                Application.Quit ();
            };

            ScrolledWindow scrolled_window = new ScrolledWindow ();
            WebView web_view = new WebView ();
            web_view.Open (url);
            scrolled_window.Add (web_view);
            window.Add(scrolled_window);
            window.ShowAll();

            Application.Run();
        }
開發者ID:vortec,項目名稱:lolbr_desktop,代碼行數:23,代碼來源:Main.cs

示例3: Init

        public void Init()
        {
            try{
                var fxd = new Fixed();
                _window.Add(fxd);
                _wbkt = new WebView();
                fxd.Add(_wbkt);

                //init window
                this.SetSizeRequest(_window_width, _window_height);
                _window.AllowShrink = false;
                _window.Resizable = false;
                _window.SetPosition(WindowPosition.CenterAlways);

                //subscribe on events
                _window.DeleteEvent += OnDelete;
                _wbkt.LoadFinished += OnWindowLoaded;

                //webkit init
                _wbkt.Open(string.Format (URL, this._app_id, _scope, _display, _api_veresion));
            }
            catch(Exception ex)
            {
                this.throwError(22, "Error while window initialization: " + ex.Message);
            }
        }
開發者ID:kpasechnychenko,項目名稱:oauth-vk,代碼行數:26,代碼來源:LoginWindow.cs

示例4: NewTab_Activated

 void NewTab_Activated(object sender, EventArgs args)
 {
     anotherWebView = new WebView();
     anotherWebView.Open(this.url);
     nb.AppendPage(anotherWebView,new Label (this.url));
 }
開發者ID:mariuz,項目名稱:monobrowser,代碼行數:6,代碼來源:Main.cs


注:本文中的WebKit.WebView.Open方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。