本文整理匯總了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;
}
示例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();
}
示例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);
}
}
示例4: NewTab_Activated
void NewTab_Activated(object sender, EventArgs args)
{
anotherWebView = new WebView();
anotherWebView.Open(this.url);
nb.AppendPage(anotherWebView,new Label (this.url));
}