예제 #1
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);
        }
예제 #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);
		}
예제 #3
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);
		}
예제 #4
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);
		}
예제 #5
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);
        }
예제 #6
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);
        }