'C# AvalonEdit TextEditor scroll to line from code
I am having a lot of troubles to find a way an AvalonEdit TextEditor scroll to specific line. I have found a topic that is related to my issue :AvalonEdit scroll to line. But I can't understand how to get to TextArea or how to bind a proper property.
WPF:
<avalonedit:TextEditor
Grid.Row="0"
WordWrap="True"
ShowLineNumbers="True"
LineNumbersForeground="DarkGray"
x:Name="textEditor"
FontFamily="Consolas"
SyntaxHighlighting="XML"
FontSize="10pt"
Document="{Binding TextEditor, Mode=TwoWay}"
>
</avalonedit:TextEditor>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
