WPF MVVM formatted Text Binding
I'm Using MVVM in WPF (.Net 3.5) and I need a control that supports formatted开发者_运维百科 text, bold & italics, and I can bind to easily. When I say easily I mean something like Text ="{Binding FormattedText}" and that's it. RichTextBox blows for binding.
You have to use HtmlToXamlConverter
as in here HTML Textblock and here Rich textblock
You can use A Bindable WPF RichTextBox
精彩评论