Example #1
0
 /// <summary>
 /// Check the status to decide if the gesture is terminated or failed.
 /// Terminate when all fingers on the object is released.
 /// </summary>
 /// <returns>true: terminate, false: failed</returns>
 protected override bool CheckTerminate()
 {
     if (AssociatedTouches == null || AssociatedTouches.Count() == 0)
     {
         return(true);
     }
     return(false);
 }
Example #2
0
        /// <summary>
        /// Check the touches to decide whether the gesture enters a terminated or failed status.
        /// </summary>
        /// <returns>true: continue, false: terminated or failed</returns>
        protected override async Task <bool> CheckContinue()
        {
            if (AssociatedTouches == null || AssociatedTouches.Count() == 0)
            {
                return(false);
            }
            bool isIntersect = await(AssociatedObjects[1] as MenuBar).IsIntersectWithDelete((AssociatedObjects[0] as SortingBox).Position);

            return(isIntersect);
        }