Posted 14 years ago by Michael Chamberlain
Avatar
Hi there,

Does the syntax editor support two way binding? It doesn't seem to work for me, for instance:

<editor:SyntaxEditor Text="{Binding Path=Code, Mode=TwoWay}" >

This will set correctly set the Text to be the value of the Code variable in my viewmodel, but any changes I make to the code are not reflected back. I've had to resort to using the DocumentTextChanged event to manually update the Code property, which isn't very good now, is it?

Mike

Comments (3)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Michael,

Yes data binding is supported by it's off by default for performance/memory reasons. This documentation topic talks about how to enable it:
"SyntaxEditor Input/Output Features / Data Binding"

I believe there also is a QuickStart that shows it.


Actipro Software Support

Posted 14 years ago by Michael Chamberlain
Avatar
I couldn't find that topic in the help, but I did eventually work out that you need to set the IsTextDataBindingEnabled property to True on the control.
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The full path to the documentation topic is "Actipro SyntaxEditor / User Interface Features / Input/Output Features / Data Binding".


Actipro Software Support

The latest build of this product (v18.1 build 0233) was released 5 years ago, which was after the last post in this thread.