
Hi,
I'm using WPF SyntaxEditor in TabControl in order to edit some files together.
I want to save the Scroll positions when moving between tabs.
So i try to save in my model the ActiveView.ScrollState.HorizontalAmount and ActiveView.ScrollState.VerticalAnchorTextPosition.Line, and then in DocumentChanged event i call to ctiveView.Scroller.ScrollTo(new TextViewScrollState(new TextPosition(DocumentScriptModel.VerticalLinePosition, 0), DocumentScriptModel.HorizontalPosition));
the problem is that when the file is long, and cannot display all text without scrolling - the restore works as well, but when there is short content, it come back to position 0.
So i need solution - or in which event i can call the scrollTo again after loaded completly, and maybe it will work. or how rto disable the scroller when not need it.
Thank you!