在 WPF 中实现所见即所得文档编辑器?
您将如何在 WPF 中实现所见即所得文档编辑器?
该编辑器与 WYSIWYG html 编辑器非常相似,但是 后端数据结构不一定是html。 目前,我有一个基于 c++ 实现的 mshtml 控件的工作版本(这非常类似于 MS InfoPath)。 我正在寻求从此工具中删除 mshtml 依赖项,因此使用 WPF WebBrowser 控件是我想避免的选择。
支持的基本功能:
- 流程样式文档
- 支持一组基本控件(TextBox、DropDown、ListBox、DatePicker 等)
- 支持基本样式
- 支持表格(调整大小、合并单元格、拆分单元格等)
How will you approach to implement a WYSIWYG document editor in WPF?
This editor is going to be very similar to WYSIWYG html editors, but
back-end data structures do not have to be html. Currently, I have a working version based on mshtml control implemented in c++ (this is pretty much like MS InfoPath). I'm seeking to take out the mshtml dependency from this tool, so using WPF WebBrowser control is a choice I want to avoid.
Basic features to support:
- Flow style document
- Supports a basic set of controls (TextBox, DropDown, ListBox, DatePicker, etc)
- Supports basic styles
- Supports tables (resize, merge cells, split cells, etc)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能不完全是您想要的,但您可能想研究 WPF 中构建的 FlowDocument 支持,因为它支持您所要求的很多功能: https://learn.microsoft.com/en-us/dotnet/framework/wpf/advanced/flow-document-overview< /a>
Probably not exactly what you are after, but you might like to investigate the FlowDocument support build into WPF as it supports a lot of what you are asking for: https://learn.microsoft.com/en-us/dotnet/framework/wpf/advanced/flow-document-overview