That is a good point - If the databinding was being used to show multiple documents, then you wouldn't want the document to stay scrolled when changing.
However, in my opinion these represent very different databinding scenarios: a 'document' vs the text of the document.
In the normal case, I would expect the SyntaxEditor.Text databinding to behave in a similar fashion to databinding on a TextBox or RichTextBox, which both preserve the scroll position.
In any case, is there a workaround possible to prevent the scroll position from changing? Or a way to read the scrollposition before the text changes and set it afterward?
Edit: I looked at reading the visual tree to find the vertical offset directly, however it appears that the control does not use a standard scrollviewer.
[Modified 8 years ago]