locked
How to get the application link of the current app in Windows Store?

    Question

  • For I want that the user can share my app link to others while tap an UIElement? Here is my code, or any other better suggestions?
                DataTransferManager ma = DataTransferManager.GetForCurrentView();
                ma.DataRequested += ma_DataRequested;
                DataTransferManager.ShowShareUI();
    
    
                DataRequest request = args.Request;
                request.Data.Properties.Title = Resource.GetString(Constant.RESOURCE_KEY.AppName);
                request.Data.Properties.Description = string.Empty;
    
                string url =?????;
                request.Data.SetWebLink(new Uri(url));
                request.Data.SetText(url);
                request.Data.SetHtmlFormat(url);
                request.Data.SetRtf(url);

    Friday, December 26, 2014 3:58 AM

Answers

  • Please see Linking to your app.


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by imnbwd Monday, December 29, 2014 1:21 AM
    Friday, December 26, 2014 2:10 PM
    Moderator

All replies

  • Please see Linking to your app.


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by imnbwd Monday, December 29, 2014 1:21 AM
    Friday, December 26, 2014 2:10 PM
    Moderator
  • Thanks, by the help of the provided url, I find there is a link to the Store in the detail pane of the app in windows phone store dashboard, so I can use this link.
    Monday, December 29, 2014 1:27 AM