
Hi,
how can I bind a variable of type int which holds a line number to my view so that this line gets highlighted?
Something like this...
SelectedLine={Binding Path=MyViewModel.CurrentLine}"
Thanks in advance.
Hi,
how can I bind a variable of type int which holds a line number to my view so that this line gets highlighted?
Something like this...
SelectedLine={Binding Path=MyViewModel.CurrentLine}"
Thanks in advance.
Hello,
Can you explain what kind of highlight you are hoping to show there? Do you mean you just want to be notified of where the caret is? We don't really have an MVVM-friendly way to get/set that. The SyntaxEditor.Caret.Position property will give you a line/character (TextPosition) pair that you can get/set programmatically.
Please log in to a validated account to post comments.