I have created WPF Browser Application and added Page and a Window. On click of button in Page it opens the Window with the list of details in a DataGrid. I want to assign the values from DataGrid of Window to the Page Controls.
The values are not assigned to the Page controls with the following code in Window code behind (Window1.xaml.cs)
private void DataGrid1_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
Page1 page = new Page1();
page.txtName.Text = "GridValue1";
this.Close();
}
When I DoubleClick, the values from Wiindow1 Datagrid should be assigned to controls of Page1. I am not getting the right object of the page to assign txtName.text with DataGrid value of Window1.
Thanks a lot in Advance...