示例#1
0
        public virtual void onMouseWheel(object sender, MouseWheelEventArgs e)
        {
            GraphicObject p = Parent as GraphicObject;
            if (p != null)
                p.onMouseWheel(sender,e);

            MouseWheelChanged.Raise (this, e);
        }
示例#2
0
        public override void onMouseWheel(object sender, MouseWheelEventArgs e)
        {
            if (Child == null)
                return;

            if (VerticalScrolling )
                ScrollY -= e.Delta * ScrollSpeed;
            if (HorizontalScrolling )
                ScrollX -= e.Delta * ScrollSpeed;
        }
示例#3
0
 /// <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)
 {
 }