有没有办法在 WPF 数据网格中显示格式化的富文本?
我正在尝试在 WPF DataGrid(来自 WPF Toolkit)的列内显示富文本。像这样的东西:
姓名:鲍勃
标题:医生
我正在使用字符串属性以编程方式创建一个数据对象。我希望这个字符串包含富文本并将其绑定到列内容。这可能吗?
非常感谢任何帮助!
I'm trying to display rich text inside of a column of a WPF DataGrid (from WPF Toolkit). Something like this:
Name: Bob
Title: Doctor
I am creating a data object programmatically in code with the string property. And I want this string to contain the rich text and than bind it to the column contents. Is that possible?
Would really appreciate any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 DataGridTemplateColumn:
Use the DataGridTemplateColumn: