Dear community.
I have now used way too long time, trying to figure out a problem, which I didn't think would be that hard.
Here is the deal:
I am writing a small application using C# and WPF.
I have a RichTextBox containing a FlowDocument.
I have added a small textbox and a button below my richtextbox.
The user then types in the word he/she wishes to search for, and presses the button.
The richtextbox will then jump to the first occurrance of that word.
it is enough that it just jumps to the correct line - it can also select, highlight or place the cursor by the word - anything will do, as long as the richTextBox is scrolled to the word.
Continuing to press the button, will then jump to the next occurance of the word, and so on so forth, till the end of the document.
As I said - I thought it to be a simple task - however I am having serious problems figuring this out.
I hope you will be able to help me.
All the best
/Sagi