/// <summary>
        /// Manages what happens while the user is mid-slide
        /// </summary>
        /// <param name="touches">Touches.</param>
        /// <param name="evt">Evt.</param>
        public override void TouchesMoved(MonoTouch.Foundation.NSSet touches, UIEvent evt)
        {
            base.TouchesMoved(touches, evt);

            if (CurrentActivePanelContainer == null)
            {
                return;
            }

            PointF  touchPt;
            UITouch touch = touches.AnyObject as UITouch;

            if (touch != null)
            {
                touchPt = touch.LocationInView(this.View);
            }
            else
            {
                return;
            }

            RectangleF newFrame = CurrentActivePanelContainer.Sliding(touchPt, SlidingController.View.Frame);

            SlidingController.View.Frame = newFrame;
        }
示例#2
0
        /// <summary>
        ///     Manages what happens while the user is mid-slide
        /// </summary>
        /// <param name="touches">Touches.</param>
        /// <param name="evt">Evt.</param>
        public override void TouchesMoved(NSSet touches, UIEvent evt)
        {
            base.TouchesMoved(touches, evt);

            if (CurrentActivePanelContainer == null)
            {
                return;
            }

            CGPoint touchPt;
            var     touch = touches.AnyObject as UITouch;

            if (touch != null)
            {
                touchPt = touch.LocationInView(View);
            }
            else
            {
                return;
            }

            CGRect newFrame = CurrentActivePanelContainer.Sliding(touchPt, SlidingController.View.Frame);

            SlidingController.View.Frame = newFrame;
        }