Beispiel #1
0
 protected void RaiseMouseWheel(MouseWithKeysEventArgs e)
 {
     if (DefaultMouseHandler != null)
     {
         DefaultMouseHandler.OnMouseWheel(e);
     }
 }
Beispiel #2
0
 protected void RaiseDoubleClick(MouseWithKeysEventArgs e)
 {
     if (DefaultMouseHandler != null)
     {
         DefaultMouseHandler.OnDoubleClick(e);
     }
 }
Beispiel #3
0
 public override void OnMouseHover(MouseEventArgsWithKeys e)
 {
     DefaultMouseHandler = ShapeToForwardMouseEventTo(e);
     if (DefaultMouseHandler != null)
     {
         DefaultMouseHandler.OnMouseHover(e);
     }
 }
Beispiel #4
0
        public override void OnMouseWheel(MouseEventArgsWithKeys e)
        {
            if (Capture != null)
            {
                Capture = null;
            }

            DefaultMouseHandler = ShapeToForwardMouseEventTo(e);
            if (DefaultMouseHandler != null)
            {
                DefaultMouseHandler.OnMouseWheel(e);
            }
        }
        public override void OnMouseHover(MouseWithKeysEventArgs e)
        {
            DefaultMouseHandler = ShapeToForwardMouseEventTo(e);
            if (DefaultMouseHandler != null)
            {
                DefaultMouseHandler.OnMouseHover(e);
            }

            if (e.Handled)
            {
                return;
            }

            RaiseMouseHover(e);
        }
Beispiel #6
0
        public override void OnMouseDown(MouseEventArgsWithKeys e)
        {
            if (Capture != null)
            {
                Capture.OnMouseDown(e);
                return;
            }

            IShape clicked = ShapeToForwardMouseEventTo(e);

            DefaultMouseHandler = clicked;
            if (clicked != null)
            {
                Capture = clicked;
                DefaultMouseHandler.OnMouseDown(e);
            }
        }
        public override void OnDoubleClick(MouseWithKeysEventArgs e)
        {
            if (Capture != null)
            {
                Capture = null;
            }

            DefaultMouseHandler = ShapeToForwardMouseEventTo(e);
            if (DefaultMouseHandler != null)
            {
                DefaultMouseHandler.OnDoubleClick(e);
            }

            if (e.Handled)
            {
                return;
            }

            RaiseDoubleClick(e);
        }
        public override void OnMouseMove(MouseWithKeysEventArgs e)
        {
            if (Capture != null)
            {
                Capture.OnMouseMove(e);
            }
            else
            {
                DefaultMouseHandler = ShapeToForwardMouseEventTo(e);
                if (DefaultMouseHandler != null)
                {
                    DefaultMouseHandler.OnMouseMove(e);
                }
            }

            if (e.Handled)
            {
                return;
            }

            RaiseMouseMove(e);
        }
        public override void OnMouseDown(MouseWithKeysEventArgs e)
        {
            if (Capture != null)
            {
                Capture.OnMouseDown(e);
            }
            else
            {
                IShape clicked = ShapeToForwardMouseEventTo(e);
                DefaultMouseHandler = clicked;
                if (DefaultMouseHandler != null)
                {
                    Capture = clicked;
                    DefaultMouseHandler.OnMouseDown(e);
                }
            }

            if (e.Handled)
            {
                return;
            }

            RaiseMouseDown(e);
        }