This question is locked. New answers and comments are not allowed.
Code like the following does not work anymore:
I have replaced it with the following:
Is this the correct way to solve the issue?
Best regards,
/Henrik
private void HtmlDataProvider_SetupDocument(object sender, SetupDocumentEventArgs e){ foreach (Span span in e.Document.EnumerateChildrenOfType<Span>()) { span.ClearValue(Span.FontSizeProperty); span.ClearValue(Span.FontFamilyProperty); span.ClearValue(Span.FontStyleProperty); span.ClearValue(Span.FontWeightProperty); }}I have replaced it with the following:
private void HtmlDataProvider_SetupDocument(object sender, SetupDocumentEventArgs e){ foreach (Span span in e.Document.EnumerateChildrenOfType<Span>()) { if (span.Style != null) { span.Style.ClearPropertyValue(Span.FontSizeProperty); span.Style.ClearPropertyValue(Span.FontFamilyProperty); span.Style.ClearPropertyValue(Span.FontStyleProperty); span.Style.ClearPropertyValue(Span.FontWeightProperty); } }}Is this the correct way to solve the issue?
Best regards,
/Henrik