most economic way to display formatted rich text in wpf?

I'm looking for basically fastest way to display non-editable FlowDocument with continuous, variously decorated text. I know RichTextBox and usually use FlowDowcumentScrollViewer that can display FlowDocument content. I know TextBlock can (kind of) be fed Inlines in code, but doens't support Paragraphs etc.

But did anybody measure which of the former two are faster with different occasions (scrolling / non scrolling, long / shorter document etc.) ?

Or is there some other, more effective solution ?

Some people claim that FlowDowcumentScrollViewer is actually slower because it supports more (advanced) formatting scenarios. Not sure if thats true. On the other hand RichTextBox has all the editing functionality etc. that drags its speed down.

As Im currently writing a RichText heavy application, I would be glad for any tips on this

链接地址: http://www.djcxy.com/p/8914.html

上一篇: 通过Gmail在.NET中发送电子邮件

下一篇: 最经济的方式来显示wpf格式的富文本?