I have HTML-Source string saved in SQL Server table called \"Report\" in HTMLReport field (field type is NTEXT). Now I need to display that stored HTML into WPF Window. HT
I would recommend to use Exceed WPF ToolKit RichTextBox which can bind to string representation of Xaml markup using Text
property.
For converting Html to Xaml I used HtmlToXamlConverter nuget package.
HtmlToXamlConverter.ConvertHtmlToXaml(html, false)
If you want to display it as TextBlock as me here are some styles:
Style TargetType="RichTextBox" x:Key="RichTextBoxStyle">