本文整理匯總了C#中WebKit.WebView.SetScrollAdjustments方法的典型用法代碼示例。如果您正苦於以下問題:C# WebView.SetScrollAdjustments方法的具體用法?C# WebView.SetScrollAdjustments怎麽用?C# WebView.SetScrollAdjustments使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WebKit.WebView
的用法示例。
在下文中一共展示了WebView.SetScrollAdjustments方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: InitializeWindow
void InitializeWindow(object _sender, EventArgs ev)
{
Gtk.Adjustment h = new Gtk.Adjustment(0, 0, 0, 0, 0, 0);
Gtk.Adjustment v = new Gtk.Adjustment(0, 0, 0, 0, 0, 0);
v.Changed += delegate (object sender, EventArgs e) {
DebugHelper.WriteLine ("vertical scroll Changed " + v.Value);
};
v.ValueChanged += delegate (object sender, EventArgs e) {
DebugHelper.WriteLine ("vertical scroll ValueChanged " + v.Value);
};
widget = new EmbedWidget(handle, h, v);
widget.Unrealized += delegate {
Dispose (true);
};
widget.Init ();
webview = new webkit.WebView();
webview.LoadCommitted += delegate (object o, webkit.LoadCommittedArgs args) {
};
webview.LoadProgressChanged += delegate (object o, webkit.LoadProgressChangedArgs args) {
};
webview.SetScrollAdjustments (h, v);
widget.Add (webview);
widget.ShowAll ();
initialized = true;
}