public void Initialize(Orientation dir) { if (dir == Orientation.Horizontal) { Widget = new Gtk.HScale(0, 1.0, 1); } else { Widget = new Gtk.VScale(0, 1.0, 1) { Inverted = true } }; Widget.DrawValue = false; Widget.ValueChanged += HandleValueChanged; Widget.Show(); }