protected void OnScrollEvent(object o, ScrollEventArgs args) { Kurve.Interface.ScrollDirection scrollDirection; switch (args.Event.Direction) { case Gdk.ScrollDirection.Up: scrollDirection = Kurve.Interface.ScrollDirection.Up; break; case Gdk.ScrollDirection.Down: scrollDirection = Kurve.Interface.ScrollDirection.Down; break; default: return; } rootComponent.Scroll(scrollDirection); }