Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7609639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:13:15+00:00 2026-05-31T01:13:15+00:00

I am attempting to create a hyperlink from an existing url that I would

  • 0

I am attempting to create a hyperlink from an existing url that I would like to ‘share’ with others. What I mean to say is that I am creating a ‘share page’ option for my phone app and I pass the current url via querystring to my SharePage.xaml, whereby the user may select an option to share the current url that the webbrowser control is on. For instance, in my SharePage.xaml.cs my code is as follows:

SharePage.xaml.cs

    string urlToShare;

    public SharePage()
    {
        InitializeComponent();
    }

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {
        //base.OnNavigatedTo(e);

        NavigationContext.QueryString.TryGetValue("curUrl", out urlToShare);
    }

    private void SocialNetworks_Click(object sender, RoutedEventArgs e)
    {
        ShareLinkTask shareLinkTask = new ShareLinkTask();

        Uri shareUrl = new Uri(urlToShare);            

        shareLinkTask.Title = "Shared Link!";
        shareLinkTask.LinkUri = shareUrl;
        shareLinkTask.Message = "Check out this link!";

        shareLinkTask.Show();
    }

As of now this works although the LinkUri part of the message shows up as plain text instead of a hyperlink (which is what I would like to give as an option). The purpose would be to simply facilitate more efficient, quicker navigation to a url so that the user does not have to copy and paste the url into a web browser manually (something I’ve found annoying on the Windows Phone). Is there any way to do this in code behind in my SocialNetworks_Click event? Any code help or suggestions would be greatly appreciated, I have never messed with the Hyperlink option in C# as I am new to the language (and cannot find anything online about doing this in code behind if thats possible). Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:13:17+00:00Added an answer on May 31, 2026 at 1:13 am

    I think you’re confused about what the ShareLinkTask is supposed to do.

    This isn’t meant to be displayed as a link in your app, or even in the task UI.

    On the “Post a link” page this will be just text (and not tappable).
    When the link appears in Twitter or Facebook or LinkedIn or whatever else you’re sharing to then it will be a valid link that can be tapped/clicked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to create a custom calendar control that inherits from ASP.Net's built in
I am attempting to create a web page that will allow a user to
I'm attempting to create a gallery/gridview that is loaded with images from a specific
I am attempting to create a small application to collect data received from an
I am attempting to create a REST API in PHP and I'd like to
I'm attempting to create a Parcelable class in Android so that I can pass
I am attempting to create an inbound Mule endpoint that will receive Syslog messages
I'm attempting to create a method in Haskell which I would think is very
I'm attempting to create a new forum on an existing forum. I can create
So I am attempting to create a search field that will filter contacts on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.