public virtual void onMouseWheel(object sender, MouseWheelEventArgs e) { GraphicObject p = Parent as GraphicObject; if (p != null) p.onMouseWheel(sender,e); MouseWheelChanged.Raise (this, e); }
public override void onMouseWheel(object sender, MouseWheelEventArgs e) { if (Child == null) return; if (VerticalScrolling ) ScrollY -= e.Delta * ScrollSpeed; if (HorizontalScrolling ) ScrollX -= e.Delta * ScrollSpeed; }
/// <summary> /// Constructs a new <see cref="MouseWheelEventArgs"/> instance. /// </summary> /// <param name="args">The <see cref="MouseWheelEventArgs"/> instance to clone.</param> public MouseWheelEventArgs(MouseWheelEventArgs args) : this(args.X, args.Y, args.Value, args.Delta) { }