コード例 #1
0
        /// <summary>
        /// Called when touch enters map
        /// </summary>
        /// <param name="touchPoints">List of all touched points</param>
        private bool OnTouchEntered(List <Geometries.Point> touchPoints)
        {
            // Sanity check
            if (touchPoints.Count == 0)
            {
                return(false);
            }

            var args = new TouchedEventArgs(touchPoints);

            TouchEntered?.Invoke(this, args);

            return(args.Handled);
        }
コード例 #2
0
        /// <summary>
        /// Called when touch enters map
        /// </summary>
        /// <param name="touchPoints">List of all touched points</param>
        private bool OnTouchEntered(List <Geometries.Point> touchPoints)
        {
            // Sanity check
            if (touchPoints.Count == 0)
            {
                return(false);
            }

            var args = new TouchedEventArgs(touchPoints);

            TouchEntered?.Invoke(this, args);

            if (args.Handled)
            {
                return(true);
            }

            // We have an interaction with the screen, so stop all animations
            Navigator.StopRunningAnimation();

            return(true);
        }
コード例 #3
0
 public virtual void OnTouchEntered()
 {
     TouchEntered.Invoke(this);
 }
コード例 #4
0
ファイル: Widget.cs プロジェクト: randomcrab/Myra
 public virtual void OnTouchEntered()
 {
     IsTouchInside = true;
     TouchEntered.Invoke(this);
 }