예제 #1
0
 void IInteractionTrackerOwner.ValuesChanged(InteractionTracker sender, InteractionTrackerValuesChangedArgs args)
 {
     if (!m_isInteracting && Math.Abs(args.Position.X) > CompletionThreshold)
     {
         SwipeDismissedArgs dismissedArgs = new SwipeDismissedArgs();
         if (args.Position.X < 0)
         {
             dismissedArgs.DismissedNear = true;
         }
         else
         {
             dismissedArgs.DismissedFar = true;
         }
         if (Dismissed != null)
         {
             Dismissed(this, dismissedArgs);
         }
     }
 }
 void IInteractionTrackerOwner.ValuesChanged(InteractionTracker sender, InteractionTrackerValuesChangedArgs args)
 {
     if (!m_isInteracting && Math.Abs(args.Position.X) > CompletionThreshold)
     {
         SwipeDismissedArgs dismissedArgs = new SwipeDismissedArgs();
         if (args.Position.X < 0)
         {
             dismissedArgs.DismissedNear = true;
         }
         else
         {
             dismissedArgs.DismissedFar = true;
         }
         if (Dismissed != null)
         {
             Dismissed(this, dismissedArgs);
         }
     }
 }