How to pass a string from user control to its parent Window in WPF?
<p>I have custom made UserControl with textbox and button. I add this UC to main window and now I want that when I click on button inside UC, text from UC textbox gets transfered into textbox or label in main window. If I'm correct I should made custom event and bind it somewhere or something like that but I can't find anything usefull so I would be glad for some help or a good tutorial.</p>