Windows Phone 7 ShareStatusTask - Is it possible to customize it further?

与世无争的帅哥 提交于 2019-12-08 12:48:03

问题


ShareStatusTask statusTask = new ShareStatusTask();
statusTask.Status = "Blogging";
statusTask.Show();

There is a ShareStatusTask available in Windows Phone 7 which meets most of my needs. But I need to further customize it. Meaning, I have individual Facebook, Twitter, Live icons. When an user hits them, I should be able to popup the share status task with either Facebook or Twitter or Live pre-selected.

If they are not configured, I would show an error message probably to configure it in their device (under settings -> accounts).

Is there any code or inbuilt functionality available in Mango to access these ?


回答1:


Unfortunately there is no way available to further customize it.

When you use ShareStatusTask (or some other similar tasks like ShareLinkTask), the control completely goes to the Operating System and we have nothing to do with.

If we really want to customize, we have to go for our own implementations using some third party libraries like Hammock or Twitterizer for Twitter and Facebook c# SDK for facebook.

Even with a little disadvantage, I would suggest to use ShareStatusTask for simple implementations, unless you need some picture sharing etc.



来源:https://stackoverflow.com/questions/11159020/windows-phone-7-sharestatustask-is-it-possible-to-customize-it-further

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!