Implement a WYSIWYG document editor in WPF?

混江龙づ霸主 提交于 2020-01-01 18:17:08

问题


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:

  1. Flow style document
  2. Supports a basic set of controls (TextBox, DropDown, ListBox, DatePicker, etc)
  3. Supports basic styles
  4. Supports tables (resize, merge cells, split cells, etc)

回答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:

http://msdn.microsoft.com/en-us/library/aa970909.aspx


来源:https://stackoverflow.com/questions/1023933/implement-a-wysiwyg-document-editor-in-wpf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!