// SetHtml() extension method for any RichTextBox internal static void SetHtml(this RichTextBox richTextBox, string htmlText) { HtmlParser htmlParser = new HtmlParser(); htmlParser.SetHtml(richTextBox, htmlText, null); }
// SetHtml() extension method for any Panel internal static void SetHtml(this Panel panel, string htmlText) { HtmlParser htmlParser = new HtmlParser(); htmlParser.SetHtml(panel, htmlText, null); }
private void AttachHtml() { if (m_HtmlText == null) return; HtmlParser htmlParser = new HtmlParser(); htmlParser.DocumentUri = m_DocumentUri; if (HyperlinkClick != null) htmlParser.HyperlinkClick += HyperlinkClick; htmlParser.SetHtml(base.Content as StackPanel, m_HtmlText, this); }