Pass value between windows

shers

Well-known member
Joined
Aug 12, 2007
Messages
86
Programming Experience
1-3
Hello,

In WPF, I open window2 from window1 with a button click keeping window1 open. When I close window2, I want to display 2 values in window1. How can this be achieved?

Thanks
 
You would display the second window as a modal dialogue and then get the desired data from properties of that window. Follow the Blog link in my signature below and check out my posts on Multiple Forms. It was written with Windows Forms in mind but the principles are exactly the same for WPF.

P.S. Be sure to read all three parts of that blog series.
 
Back
Top