tags:

views:

727

answers:

2

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)
+2  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:

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

Recently i implemented a simple wywiwyg editor in WPF, that could easily be expanded, look at it in http://blog.yottasolucoes.com/2010/09/criando-um-editor-html-wysiwyg-em-wpf/?lang=en