Skip to content

Commit

Permalink
The Gestures enum is/was redundant to the Gesture enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Nixon committed Oct 1, 2018
1 parent 5d78bb4 commit 5453d90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
9 changes: 0 additions & 9 deletions Source/Windows10/Prism.Windows/Navigation/Gestures.cs

This file was deleted.

14 changes: 7 additions & 7 deletions Source/Windows10/Prism.Windows/Navigation/NavigationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void SetAsWindowContent(Window window, bool activate)
/// </summary>
/// <param name="gestures">Optional default getures tied to this Frame</param>
/// <returns>IPlatformNavigationService</returns>
public static IPlatformNavigationService Create(params Gestures[] gestures)
public static IPlatformNavigationService Create(params Gesture[] gestures)
{
return Create(new Frame(), Window.Current.CoreWindow, gestures);
}
Expand All @@ -44,7 +44,7 @@ public static IPlatformNavigationService Create(params Gestures[] gestures)
/// <param name="frame">Required XAML Frame</param>
/// <param name="gestures">Optional default getures tied to this Frame</param>
/// <returns>IPlatformNavigationService</returns>
public static IPlatformNavigationService Create(Frame frame, params Gestures[] gestures)
public static IPlatformNavigationService Create(Frame frame, params Gesture[] gestures)
{
return Create(frame, Window.Current.CoreWindow, gestures);
}
Expand All @@ -54,7 +54,7 @@ public static IPlatformNavigationService Create(Frame frame, params Gestures[] g
/// </summary>
/// <param name="gestures">Optional default getures tied to this Frame</param>
/// <returns>IPlatformNavigationService</returns>
public static IPlatformNavigationService Create(CoreWindow window, params Gestures[] gestures)
public static IPlatformNavigationService Create(CoreWindow window, params Gesture[] gestures)
{
return Create(new Frame(), window, gestures);
}
Expand All @@ -65,7 +65,7 @@ public static IPlatformNavigationService Create(CoreWindow window, params Gestur
/// <param name="frame">Required XAML Frame</param>
/// <param name="gestures">Optional default getures tied to this Frame</param>
/// <returns>IPlatformNavigationService</returns>
public static IPlatformNavigationService Create(Frame frame, CoreWindow window, params Gestures[] gestures)
public static IPlatformNavigationService Create(Frame frame, CoreWindow window, params Gesture[] gestures)
{
frame = frame ?? new Frame();
var gesture_service = GestureService.GetForCurrentView(window);
Expand All @@ -74,13 +74,13 @@ public static IPlatformNavigationService Create(Frame frame, CoreWindow window,
{
switch (gesture)
{
case Gestures.Back:
case Gesture.Back:
gesture_service.BackRequested += async (s, e) => await navigation_service.GoBackAsync();
break;
case Gestures.Forward:
case Gesture.Forward:
gesture_service.ForwardRequested += async (s, e) => await navigation_service.GoForwardAsync();
break;
case Gestures.Refresh:
case Gesture.Refresh:
gesture_service.RefreshRequested += async (s, e) => await navigation_service.RefreshAsync();
break;
}
Expand Down

0 comments on commit 5453d90

Please sign in to comment.