OnTouchUp() public method

public OnTouchUp ( Microsoft.Maui.Graphics.Point point ) : void
point Microsoft.Maui.Graphics.Point
return void
Ejemplo n.º 1
0
        public override void OnTouchUp(GPoint point)
        {
            var touchDownPoint = new PointF((float)point.X, (float)point.Y);

            if (_minusRect.Contains(touchDownPoint) && _pressed)
            {
                View.Value -= View.Increment;
            }

            if (_plusRect.Contains(touchDownPoint) && _pressed)
            {
                View.Value += View.Increment;
            }

            _minusRippleEffect.OnTouchUp(point);
            _plusRippleEffect.OnTouchUp(point);
            _pressed = false;
        }
Ejemplo n.º 2
0
 public override void OnTouchUp(GPoint point)
 {
     _rippleEffect.OnTouchUp(point);
 }