Skip to content

Instantly share code, notes, and snippets.

@rohits79
Created June 15, 2016 00:54
Show Gist options
  • Save rohits79/d2e93baf68877d1f50ed291b5d50c1fe to your computer and use it in GitHub Desktop.
Save rohits79/d2e93baf68877d1f50ed291b5d50c1fe to your computer and use it in GitHub Desktop.
public interface INavigationAware
{
/// <summary>
/// Called when the implementer has been navigated to.
/// </summary>
/// <param name="navigationContext">The navigation context.</param>
void OnNavigatedTo(NavigationContext navigationContext);
/// <summary>
/// Called to determine if this instance can handle the navigation request.
/// </summary>
/// <param name="navigationContext">The navigation context.</param>
/// <returns>
/// <see langword="true"/> if this instance accepts the navigation request; otherwise, <see langword="false"/>.
/// </returns>
bool IsNavigationTarget(NavigationContext navigationContext);
/// <summary>
/// Called when the implementer is being navigated away from.
/// </summary>
/// <param name="navigationContext">The navigation context.</param>
void OnNavigatedFrom(NavigationContext navigationContext);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment