private void OnDocumentTextRequested(object sender, DocumentTextRequestedEventArgs e) { var html = HtmlControl.GetComposition(); e.Document = html; }