Exemplo n.º 1
0
        public override void TouchesMoved(NSSet touches, UIEvent evt)
        {
            //for touch: AnyObject in touches
            var touch = touches.AnyObject as UITouch;

            if (touch != null)
            {
                //let newLocation = touch.location(in: self.view);
                var newLocation = touch.GetPreciseLocation(View);
                _shapeController.ContinueMove(
                    newLocation: SquareFillPoint(
                        //x: Int(newLocation.X),
                        x: Convert.ToInt16(newLocation.X),
                        y: Convert.ToInt16(newLocation.Y)));
            }
        }