I have set WordWrapMode='Word' in syntax editor WPF. The vertical scrollbar appears immediately after writting the first character into the editor (even if no scrollbar is needed yet) and you can scroll past the end of the document.
You can easily reproduce it with your samples (e.g. SDI Code Editor).
Thanks for your help.