Richtextbox wpf绑定 [英] Richtextbox wpf binding

查看:826
本文介绍了Richtextbox wpf绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要在 WPF RichtextBox 中对文档进行数据绑定,我看到目前为止的两个解决方案是从RichtextBox派生的,并添加了DependencyProperty,还有一个代理的解决方案。
第一个或第二个都不满意。有人知道另一种解决方案,还是可以使用能够 DataBinding 的商业RTF控件?通常的文本框不是一个替代方案,因为我们需要文本格式。

To do DataBinding of the Document in a WPF RichtextBox, I saw 2 Solutions so far, which are to derive from the RichtextBox and add a DependencyProperty, and also the solution with a "proxy". Neither the first or the second are satisfactory. Does somebody know another solution, or instead, a commercial RTF control which is capable of DataBinding? The normal Textbox ist not an alternative, since we need text formating.

任何想法?

推荐答案

我知道这是一个旧帖子,但请查看扩展WPF工具包。它有一个RichTextBox,支持您尝试做的事。

I know this is an old post, but check out the Extended WPF Toolkit. It has a RichTextBox that supports what you are tryign to do.

这篇关于Richtextbox wpf绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆