Scope:
Text Box in Silverlight
Question:
I need to know what the edited line number is.
I tried:
As a workaround, I tried to split using textBox.Split ("\ r") and counting matches in Regex with similar performance. Performance in the first 2000 lines is acceptable, but then it slows down.
Why:
I have a text box and a list side by side. The index of the item in the list corresponds to the line number in the text field, and the content (ListboxItem) is the "processed" version of the corresponding line in the text field.
Alternative:
A more effective strategy than my hacks.
HenrikM
source
share