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 8920647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:19:38+00:00 2026-06-15T06:19:38+00:00

I am working on a Windows Phone 8 app and am trying to share

  • 0

I am working on a Windows Phone 8 app and am trying to share content through the DataTransferManager. The Windows API documentation says it is supported in Windows Phone but when the DataTransferManager.GetForCurrentView() function is called I get an exception

System.NotSupportedException was unhandled by user code
  HResult=-2146233067
  Message=Specified method is not supported.
  Source=Windows
  InnerException: 

I have been searching for an answer and can’t find anyone else with the same issue, any help would be appreciated. All samples on this topic seem to be Windows 8 specific, but Phone 8 does include these functions. Here’s sample code from my app.

    protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
    {
        DataTransferManager dataTransferManager = DataTransferManager.GetForCurrentView();
        dataTransferManager.DataRequested += new TypedEventHandler<DataTransferManager, DataRequestedEventArgs>(dataTransferManager_DataRequested);
    }

    private void dataTransferManager_DataRequested(DataTransferManager sender, DataRequestedEventArgs e)
    {
        DataPackage requestData = e.Request.Data;
        requestData.Properties.Title = "Share Text Example";
        requestData.Properties.Description = "An example of how to share text.";
        requestData.SetText("Hello World!");
    }

    private void Button_Tap_1(object sender, System.Windows.Input.GestureEventArgs e)
    {
        DataTransferManager.ShowShareUI();
    }

Again, the exception is shown when the page loads on the DataTransferManager.GetForCurrentView(); function so it doesn’t get to the other lines, but included them anyway. I’ve tried adding/removing permissions and assemblies but must be missing something. I’ve also tried putting the function in different events (such as the onTap function) with the same results.

If anyone is interested in trying this on their own here is some documentation:

DataTransferManager

DataRequested

DataPackage

GetForCurrentView()

UPDATE

Although it may not be the best solution given the context of this question, I am implementing the Email/Sms/Link Tasks as described below rather than using the DataTransferManager. It seems that DataTransferManager may not be accessible in WP8 and although the tasks will take a number of different functions they seem to be the best way to perform the intended functionality.

  • 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-06-15T06:19:39+00:00Added an answer on June 15, 2026 at 6:19 am

    I think I have found most of what I was looking for with Launchers… Rather than just using the Windows 8 general sharing functionality I can be specific with Tasks/Launchers.

    Unfortunately it doesn’t have as many sharing options as the charm does, I will be implementing several functions for email/sms/social but so far this is the best solution.

    Here are the functions that I will be implementing

        private void ShareLink(object sender, System.Windows.Input.GestureEventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask()
                {
                    Title = "Code Samples",
                    LinkUri = new Uri("http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff431744(v=vs.92).aspx", UriKind.Absolute),
                    Message = "Here are some great code samples for Windows Phone."
                };
    
            shareLinkTask.Show();
        }
    
    
        private void ShareEmail(object sender, System.Windows.Input.GestureEventArgs e)
        {
            EmailComposeTask emailComposeTask = new EmailComposeTask()
                {
                    Subject = "message subject",
                    Body = "message body",
                    To = "recipient@example.com",
                    Cc = "cc@example.com",
                    Bcc = "bcc@example.com"
                };
    
            emailComposeTask.Show();
        }
    
        private void ShareSMS(object sender, System.Windows.Input.GestureEventArgs e)
        {
            SmsComposeTask smsComposeTask = new SmsComposeTask()
                {
                    Body = "Try this new application. It's great!"
                };
    
            smsComposeTask.Show();
        }
    

    Ref:

    Launchers for Windows Phone

    Share Link Task

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

Sidebar

Related Questions

I am working on an app on Windows Phone and trying to get data
I'm working my way (slowly) through my first windows phone 7 app, and what
So I am working on a windows phone app, and I am trying to
I am working on a Windows Phone 7 app, and trying to change some
I'm working on an app in C# (Windows-Phone-7), and I'm trying to do something
I'm working on a Windows Phone app, but I believe this applies to Silverlight
I am working on a Windows Phone 7 app and I want to give
I'm working on an App on the windows phone which is very sound, heavy,
I'm working on Windows phone client for one service with Oauth1 API. In API
Working wth live tiles in my Windows Phone 7 app and it's working quite

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.