How will you approach to implement a WYSIWYG document editor in WPF?
您将如何在WPF中实现WYSIWYG文档编辑器?
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.
这个编辑器将与WYSIWYG html编辑器非常相似,但后端数据结构不一定是html。目前,我有一个基于在c ++中实现的mshtml控件的工作版本(这与MS InfoPath非常相似)。我正在寻求从这个工具中取出mshtml依赖项,因此使用WPF WebBrowser控件是我想要避免的选择。
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)
流式样文件
支持一组基本控件(TextBox,DropDown,ListBox,DatePicker等)
支持基本样式
支持表格(调整大小,合并单元格,拆分单元格等)
1 个解决方案
#1
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:
可能不完全是你所追求的,但你可能想调查FlowDocument支持构建到WPF,因为它支持你要求的很多东西:
http://msdn.microsoft.com/en-us/library/aa970909.aspx
#1
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:
可能不完全是你所追求的,但你可能想调查FlowDocument支持构建到WPF,因为它支持你要求的很多东西:
http://msdn.microsoft.com/en-us/library/aa970909.aspx