by Bron Skinner
1. December 2010 02:25
I've been working on a Document Editor in Silverlight using the RichTextBox control.

I've found the most difficult part of the task is configuring custom actions against existing elements in the RTB control. E.g. detection of the type of inline element you're clicking such as a hyperlink and the generation of a contextpopup that allows you to remove/edit/etc.
I've also found that when saving content containing images, the images are either lost when loaded back into the editor, or not saved properly in the first place.
If you read my last post, I've used the toolbar control (above) to begin adding links to basic functionality (add/open/close/save/etc.)
There's still a lot of work to do, many cool applications with this little control - I intend to start by adding a management UI for application technical documentation objects, hierarchy, and the ability to link these documents to specific controls within an application by id. As well, i'm working on a way of handling command parameters for links added within a document, allowing users to link doucments to other doduments or fire application specific events.
The next peice after I get the basics completed on this editor is to create the document viewer. I'll post an update on these controls later.
*Quick note - I'm still working on the new Digitalboon site, it should be out reasonably soon. It's going to be pretty cool if you ask me ;)