/// <inheritdoc /> public bool TryGetGesture(ExecutedRoutedEventArgs executed, out GestureEventArgs gestureEventArgs) { gestureEventArgs = null; if (executed.Command == NavigationCommands.BrowseForward) { gestureEventArgs = new CommandGestureEventArgs(GestureType.SwipeLeft, executed); } if (executed.Command == NavigationCommands.BrowseBack) { gestureEventArgs = new CommandGestureEventArgs(GestureType.SwipeRight, executed); } return(gestureEventArgs != null); }
/// <inheritdoc /> public bool TryGetGesture(ExecutedRoutedEventArgs executed, [NotNullWhen(true)] out GestureEventArgs?gestureEventArgs) { if (executed is null) { throw new ArgumentNullException(nameof(executed)); } gestureEventArgs = null; if (executed.Command == NavigationCommands.BrowseForward) { gestureEventArgs = new CommandGestureEventArgs(GestureType.SwipeLeft, executed); } if (executed.Command == NavigationCommands.BrowseBack) { gestureEventArgs = new CommandGestureEventArgs(GestureType.SwipeRight, executed); } return(gestureEventArgs != null); }