private static void OnUrlForeColorPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { HtmlTextBox htmlTextBox = d as HtmlTextBox; SolidColorBrush solidColorBrush = (SolidColorBrush)e.NewValue; htmlTextBox.UrlForeColor = solidColorBrush; }
private static void OnHtmlContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { HtmlTextBox htmlTextBox = d as HtmlTextBox; string htmlContent = (string)e.NewValue; htmlTextBox.HtmlContent = htmlContent; }