title: getting value of listview from a child window to another child window
body: <p>in vb6 i can easily get the value from childwindow to another childwindow.. for example frm1.textbox1.text = frm2.listview.item.selectedindex... how can i do this in wpf?</p>
  
  <p>i have two child window named EmployeProfile and the other one is PrintEmpProfile... in EmployeeProfile window, there is a listview... what i want is if I'm going to click the print button, i can get the value from EmployeeProfile listview....</p>
  
  <p>so far this is what's I've got. this code is inside of PrintEmpProfile</p>
  
  <pre><code>DataTable table = new DataTable("EmpIDNumber");
  table.Columns.Add("IDNum", typeof(string));
  for (int i = 1; i &lt;= 100; i++)
  {
      table.Rows.Add(new object[] { EmployeeProfile.????? });
  }
  </code></pre>
  
  <p>i don't know how to get all values from EmployeeProfile listview.</p>