private void FireSwipeRight(double progress) { if (SwipeLeftEvent != null) { SwipeArgs e = new SwipeArgs { Progress = progress }; SwipeRightEvent(this, e); } }
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); } }
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); } }
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); } }