Show http or https as Hyperlinks in a RichTextBox
Inheritance: System.Windows.Controls.ContentControl
Exemplo n.º 1
0
        private static void OnUrlForeColorPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HtmlTextBox     htmlTextBox     = d as HtmlTextBox;
            SolidColorBrush solidColorBrush = (SolidColorBrush)e.NewValue;

            htmlTextBox.UrlForeColor = solidColorBrush;
        }
Exemplo n.º 2
0
        private static void OnHtmlContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HtmlTextBox htmlTextBox = d as HtmlTextBox;
            string      htmlContent = (string)e.NewValue;

            htmlTextBox.HtmlContent = htmlContent;
        }