I am attempting to implement "scroll to end" functionality on an AvalonEdit text editor in my appication. I have been trying to use the textEditor.ScrollToEnd() function, however, on large files when I have WordWrap turned on, AvalonEdit only scrolls part way down the file. Subsequent calls to ScrollToEnd() will eventually get me there, but I cannot find a way to move to the end of the file with one command. I have also tried textEditor.ScrollToLine(textEditor.LineCount) and have experienced the same behavior.
Is there a way to easily scroll to the end of a large word wrapped file in AvalonEdit?