Posted 15 years ago
by Michael Chamberlain

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
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