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