Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Commit

Permalink
Added the NavigateTo(string) method to the INavigationService interfa…
Browse files Browse the repository at this point in the history
…ce and implementation

Small fix on the documentation of IShareLinkService interface and implementation
  • Loading branch information
pedrolamas committed Feb 24, 2012
1 parent 4f8b420 commit 7812610
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/Cimbalino.Phone.Toolkit/Services/INavigationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ public interface INavigationService
/// <summary>
/// Navigates to the content specified by the uniform resource identifier (URI).
/// </summary>
/// <param name="source">A Uri object initialized with the URI for the desired content.</param>
/// <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>
Expand Down
2 changes: 1 addition & 1 deletion src/Cimbalino.Phone.Toolkit/Services/IShareLinkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public interface IShareLinkService
/// </summary>
/// <param name="title">The title of the shared link.</param>
/// <param name="message">The message that will accompany the shared link.</param>
/// <param name="linkUrl">The URI of the link to be shared.</param>
/// <param name="linkUrl">The URL of the link to be shared.</param>
void Show(string title, string message, string linkUrl);

/// <summary>
Expand Down
11 changes: 10 additions & 1 deletion src/Cimbalino.Phone.Toolkit/Services/NavigationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,16 @@ public IDictionary<string, string> QueryString
/// <summary>
/// Navigates to the content specified by the uniform resource identifier (URI).
/// </summary>
/// <param name="source">A Uri object initialized with the URI for the desired content.</param>
/// <param name="source">The URI for the desired content.</param>
public void NavigateTo(string source)
{
NavigateTo(new Uri(source, UriKind.Relative));
}

/// <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>
public void NavigateTo(Uri source)
{
if (EnsureMainFrame())
Expand Down
2 changes: 1 addition & 1 deletion src/Cimbalino.Phone.Toolkit/Services/ShareLinkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ShareLinkService : IShareLinkService
/// </summary>
/// <param name="title">The title of the shared link.</param>
/// <param name="message">The message that will accompany the shared link.</param>
/// <param name="linkUrl">The URI of the link to be shared.</param>
/// <param name="linkUrl">The URL of the link to be shared.</param>
public void Show(string title, string message, string linkUrl)
{
Show(title, message, new Uri(linkUrl));
Expand Down

0 comments on commit 7812610

Please sign in to comment.