Inheritance: System.EventArgs
コード例 #1
0
 private void FireSwipeRight(double progress)
 {
     if (SwipeLeftEvent != null)
     {
         SwipeArgs e = new SwipeArgs {
             Progress = progress
         };
         SwipeRightEvent(this, e);
     }
 }
コード例 #2
0
 private void FireSwipeUp(double progress)
 {
     if (SwipeLeftEvent != null)
     {
         _upSwipeTimestamp = getTimeStamp();
         enlargeTopWidth   = (OuterRect.ActualWidth / 5) * progress;
         enlargeTopHeight  = (OuterRect.ActualHeight / 5) * progress;
         translateTop      = (OuterRect.ActualHeight / 30) * progress;
         SwipeArgs e = new SwipeArgs {
             Progress = progress
         };
         SwipeUpEvent(this, e);
     }
 }
コード例 #3
0
 private void FireSwipeDown(double progress)
 {
     if (SwipeLeftEvent != null)
     {
         if (getTimeStamp() - _upSwipeTimestamp < DownSwipeBlockTimer)
         {
             return;
         }
         enlargeBottomWidth  = (OuterRect.ActualWidth / 5) * progress;
         enlargeBottomHeight = (OuterRect.ActualHeight / 5) * progress;
         translateBottom     = (OuterRect.ActualHeight / 20) * progress;
         SwipeArgs e = new SwipeArgs {
             Progress = progress
         };
         SwipeDownEvent(this, e);
     }
 }
コード例 #4
0
 private void FireSwipeUp(double progress)
 {
     if (SwipeLeftEvent != null)
     {
         _upSwipeTimestamp = getTimeStamp();
         enlargeTopWidth = (OuterRect.ActualWidth / 5) * progress;
         enlargeTopHeight = (OuterRect.ActualHeight / 5) * progress;
         translateTop = (OuterRect.ActualHeight / 30) * progress;
         SwipeArgs e = new SwipeArgs { Progress = progress };
         SwipeUpEvent(this, e);
     }
 }
コード例 #5
0
 private void FireSwipeRight(double progress)
 {
     if (SwipeLeftEvent != null)
     {
         SwipeArgs e = new SwipeArgs { Progress = progress };
         SwipeRightEvent(this, e);
     }
 }
コード例 #6
0
 private void FireSwipeDown(double progress)
 {
     if (SwipeLeftEvent != null)
     {
         if (getTimeStamp() - _upSwipeTimestamp < DownSwipeBlockTimer)
             return;
         enlargeBottomWidth = (OuterRect.ActualWidth / 5) * progress;
         enlargeBottomHeight = (OuterRect.ActualHeight / 5) * progress;
         translateBottom = (OuterRect.ActualHeight / 20) * progress;
         SwipeArgs e = new SwipeArgs { Progress = progress };
         SwipeDownEvent(this, e);
     }
 }