Communication between forms

2

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.

    
asked by anonymous 28.12.2015 / 15:39

1 answer

0

I found the answer in a post on stackoverflow.com itself, follow the link link

I accept suggestion of other solutions.

Thank you for your attention!

    
28.12.2015 / 21:02