Example #1
0
 private void _laodHtml()
 {
     _timer = Task.Factory.StartNew(() => {
         while (true)
         {
             Thread.Sleep(200);
             if (!string.IsNullOrEmpty(HtmlEditor.Text))
             {
                 this.Dispatcher.Invoke(() =>
                 {
                     HtmlView.NavigateToString(HtmlEditor.Text);
                 });
             }
         }
     });
 }
Example #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     HtmlView.NavigateToString(HtmlEditor.Text);
 }