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