Hi,

I'm quite new at programming in WPF and I have a question. I have two windows: one window with a button and, say, a textbox, that is started up by default (by setting Startup URI) and another one that is created by pressing this button on the first window.

This second window has some code in it. Its output should be directed to the textbox on the first window. With the old window forms this was easy, but I can't seem to make it happen in WPF.

My question is: how can I refer to a control on a window which is not the window in which the referring code lies?

Thanks!