Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (67 sloc) 3.011 kB
// ****************************************************************************
// <copyright file="INavigationService.cs" company="Pedro Lamas">
// Copyright © Pedro Lamas 2011
// </copyright>
// ****************************************************************************
// <author>Pedro Lamas</author>
// <email>pedrolamas@gmail.com</email>
// <date>17-11-2011</date>
// <project>Cimbalino.Phone.Toolkit</project>
// <web>http://www.pedrolamas.com</web>
// <license>
// See license.txt in this solution or http://www.pedrolamas.com/license_MIT.txt
// </license>
// ****************************************************************************
using System;
using System.Collections.Generic;
using System.Windows.Navigation;
namespace Cimbalino.Phone.Toolkit.Services
{
/// <summary>
/// Represents a service capable of handling the application navigation.
/// </summary>
public interface INavigationService
{
/// <summary>
/// Occurs when a new navigation is requested.
/// </summary>
event NavigatingCancelEventHandler Navigating;
/// <summary>
/// Occurs when the content that is being navigated to has been found and is available.
/// </summary>
event NavigatedEventHandler Navigated;
/// <summary>
/// Gets the uniform resource identifier (URI) of the content that is currently displayed.
/// </summary>
/// <value>Returns a value that represents the <see cref="Uri"/> of content that is currently displayed.</value>
Uri CurrentSource { get; }
/// <summary>
/// Gets a collection of query string values.
/// </summary>
/// <value>Returns a <see cref="IDictionary{String,String}"/> collection that contains the query string values.</value>
IDictionary<string, string> QueryString { get; }
/// <summary>
/// Navigates to the content specified by the uniform resource identifier (URI).
/// </summary>
/// <param name="source">The URI for the desired content.</param>
void NavigateTo(string source);
/// <summary>
/// Navigates to the content specified by the uniform resource identifier (URI).
/// </summary>
/// <param name="source">A <see cref="Uri"/> initialized with the URI for the desired content.</param>
void NavigateTo(Uri source);
/// <summary>
/// Gets a value indicating whether there is at least one entry in the back navigation history.
/// </summary>
/// <value>true if there is at least one entry in the back navigation history; otherwise, false.</value>
bool CanGoBack { get; }
/// <summary>
/// Navigates to the most recent available entry in the back navigation history.
/// </summary>
void GoBack();
/// <summary>
/// Removes the most recent available entry from the back stack.
/// </summary>
void RemoveBackEntry();
}
}
Jump to Line
Something went wrong with that request. Please try again.