Пример #1
0
        private void OnSelected()
        {
            ArticleContent ca    = APIManager.GetInstance().currentArticle;
            String         share = ca.title + " - 阅FM http://yue.fm/" + ca.short_id;

            switch (list[this.listBox.SelectedIndex].name)
            {
            case "weibo":
            case "tencent":
            case "douban":
                String uri = "/SocialStatusPage.xaml?type=" + list[this.listBox.SelectedIndex].name + "&share=" + share;
                (Application.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri(uri, UriKind.Relative));
                break;

            case "mail":
                EmailComposeTask ect = new EmailComposeTask();
                ect.Body = share;
                ect.Show();
                break;

            case "sms":
                SmsComposeTask sct = new SmsComposeTask();
                sct.Body = share;
                sct.Show();
                break;

            default:
                ShareStatusTask sst = new ShareStatusTask();
                sst.Status = share;
                sst.Show();
                break;
            }

            action();

            LayoutRootOutStoryboard.Begin();
        }
Пример #2
0
 public void HidePopup()
 {
     LayoutRootOutStoryboard.Begin();
 }