private void LoadPost() { string from_section = ""; string keyword = ""; //CurrentPost = ((IBlogValues)Application.Current).AppValues if (CurrentPost == null) { MessageBox.Show("No current post to show! #sadPanda"); } else { pivot.Title = CurrentPost.Title; webBrowser1.NavigateToString(WebBrowserHelper.WrapHtml(app.CurrentPost.Description, webBrowser1.ActualWidth)); postTitleTxt.Text = app.CurrentPost.Title; postSubTitleTxt.Text = app.CurrentPost.subTitle; postTitleTxt2.Text = app.CurrentPost.Title; postSubTitleTxt2.Text = app.CurrentPost.subTitle; LoadComments(app.CurrentPost.ID); } }
private void WebBrowser1_ScriptNotify(object sender, NotifyEventArgs e) { webBrowser1.Dispatcher.BeginInvoke(() => WebBrowserHelper.OpenBrowser(e.Value)); }