本文整理汇总了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));
}