Windows Phone 8.0 Facebook / Twitter / Google +分享?

时间:2015-06-10 10:54:53

标签: windows-phone-8

如何使用Windows Phone 8.0(silverlight)应用程序开发在facebook,twitter和google +上分享图像?

2 个答案:

答案 0 :(得分:0)

试试这段代码,它一定会帮到你

using Microsoft.Phone.Tasks;
cameraCaptureTask.Show();

       void cameraCaptureTask_Completed(object sender, PhotoResult e)
       {
            if(e.TaskResult == TaskResult.OK)
           {
               ShowShareMediaTask(e.OriginalFileName);
           }
       }
       void ShowShareMediaTask(string path)
       {
           ShareMediaTask shareMediaTask = new ShareMediaTask();
           shareMediaTask.FilePath = path;
           shareMediaTask.Show();
       }

借助以下链接获取进一步参考:https://msdn.microsoft.com/en-us/library/windows/apps/jj207027%28v=vs.105%29.aspx

答案 1 :(得分:0)