This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added the NavigateTo(string) method to the INavigationService interfa…

…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 78126107a7fb3b4626f2f13022c3a632e7384d24
@@ -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>
@@ -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>
@@ -79,7 +79,16 @@ public Uri CurrentSource
/// <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())
@@ -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));

0 comments on commit 7812610

Please sign in to comment.