views:

231

answers:

2

Hi, Does anyone know if there's a free WPF syntax highlighting component? I'm currently using AvalonEdit, which is part of the new SharDevelop source.
The trouble I'm having is that it doesn't appear to support binding for the text content.

Does anyone know if this is possible or if there's any other similar controls that do support data binding?

+1  A: 

In addition to the post mentioned in my comment, you could have a look at this article

Thomas Levesque
A: 

AFAIK it's impossible to efficiently implement data binding in custom WPF text box controls.

The builtin WPF TextBox can only do this by using System.Windows.DeferredReference; but Microsoft left that class internal.

You'll have to manually copy values in and out of AvalonEdit.

Daniel