Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@xamarin.com>2014-02-19 14:13:06 +0400
committerLluis Sanchez Gual <lluis@xamarin.com>2014-02-19 14:13:06 +0400
commit2eb0e1eda6125a5fd450f7b5875141edecb184fd (patch)
treec7037d5fc06a11ca7dcfbb2a293a549edf6ce256 /Xwt.Gtk
parent95a49b4c4ace14ea67193291753af69d02f55191 (diff)
New scroll properties
Added properties for getting the scroll adjustment of scrollable widgets such as TreeView or ListView.
Diffstat (limited to 'Xwt.Gtk')
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs
index d03ca585..13270561 100644
--- a/Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs
@@ -78,7 +78,17 @@ namespace Xwt.GtkBackend
ScrolledWindow.HscrollbarPolicy = value.ToGtkValue ();
}
}
-
+
+ public IScrollAdjustmentBackend CreateVerticalScrollAdjustment ()
+ {
+ return new ScrollAdjustmentBackend (ScrolledWindow.Vadjustment);
+ }
+
+ public IScrollAdjustmentBackend CreateHorizontalScrollAdjustment ()
+ {
+ return new ScrollAdjustmentBackend (ScrolledWindow.Hadjustment);
+ }
+
public override void EnableEvent (object eventId)
{
base.EnableEvent (eventId);