locked
Share | DataTransferManager.ShowShareUI not responding

    Question

  • Hi,

    I am using share feature of Windows Phone 8.1 App.

    #region SHARE
            private void AttachShareEvents()
            {
                _dataTransferManager = DataTransferManager.GetForCurrentView();
                _dataTransferManager.DataRequested -= OnDataRequested;
                _dataTransferManager.DataRequested += OnDataRequested;
            }

            DataTransferManager _dataTransferManager;
            protected void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs e)
            {
                e.Request.Data.Properties.Title = "Some title";
                e.Request.Data.Properties.Description = "asd asd"; // Optional
                //e.Request.Data.SetUri(new Uri("http://www.some_uri.com"));
            }

            #endregion

    DataTransferManager.ShowShareUI();

    Problem: DataTransferManager.ShowShareUI(); runs ok for my one of the user control but On some another page this code does not respond. It is not opening the list of email and sharing app while code is executing successfully and I am  not getting any exceptions.

    Spending hours to figure out the problem but no results.

    Please Help me out.

    Wednesday, April 22, 2015 5:15 AM

All replies

  • Can you post a sample to Onedrive for troubleshooting?

    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.

    Thursday, April 23, 2015 1:40 PM
    Moderator