Exemple #1
0
        private async void WeiboShare(string content)
        {
            string text = string.Format(App.Current.Resources["ShareArticle"].ToString(), content, this.NoteDetail.Title);

            if (await Untils.WeiboShareImage(NoteDetail.ImageUrl, text))
            {
                GalaSoft.MvvmLight.Messaging.Messenger.Default.Send(new ShowMessage()
                {
                    MessageContent = App.Current.Resources["ShareSuccess"].ToString()
                });
            }
            else
            {
                GalaSoft.MvvmLight.Messaging.Messenger.Default.Send(new ShowMessage()
                {
                    MessageContent = App.Current.Resources["ShareFail"].ToString()
                });
            }
        }