Posted 9 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 9 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 9 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 9 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 (v2018.1 build 0232) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.