Exemplo n.º 1
0
		// SetHtml() extension method for any RichTextBox
		internal static void SetHtml(this RichTextBox richTextBox, string htmlText)
		{
			HtmlParser htmlParser = new HtmlParser();
			htmlParser.SetHtml(richTextBox, htmlText, null);
		}
Exemplo n.º 2
0
		// SetHtml() extension method for any Panel
		internal static void SetHtml(this Panel panel, string htmlText)
		{
			HtmlParser htmlParser = new HtmlParser();
			htmlParser.SetHtml(panel, htmlText, null);
		}
Exemplo n.º 3
0
		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);
		}