/// <summary>
        /// Invoked as an event handler to navigate backward in the navigation stack
        /// associated with this page's <see cref="Frame"/>.
        /// </summary>
        /// <param name="sender">Instance that triggered the event.</param>
        /// <param name="e">Event data describing the conditions that led to the
        /// event.</param>
        protected virtual void GoBack(object sender, RoutedEventArgs e)
        {
            // Use the navigation frame to return to the previous page
            IPageNavigator navigator = ServiceLocator.Instance.Resolve <IPageNavigator>();

            if (navigator != null && navigator.CanGoBack)
            {
                navigator.GoBack();
            }
        }