I have a form that has a text editing component ( RichTextBox
) and I create a search form (Find / famous CTRL + F). My question is how do I make a "talk" with the other.
For example, type something to search the search form and mark the form that has the text editing component.
I initially thought of passing the first form to the search parameter, but it does not seem right. Is it ok to pass one window to another as a parameter? If the answer is no, how should this communication be done.
NOTE: remembering that I'm using C # and WPF.