I need to get the Childwindow value to UserControl in silverlight Application. I tried the below way , I get null value in Usercontrol page.
ChildWindow
public partial class QE : ChildWindow
{
ATest ae= new ATest();
public void OKButton_Click(object sender, RoutedEventArgs e)
{
ae.Q = "TestValue";
this.DialogResult = true;
}
}
Class
public partial class ATest : UserControl
{
public string Q { get; set; }
public void asdf()
{
string checkvalue = Q.ToString();
}
}
I need to get the Child window's "TestValue" in UserControl page's checkvalue variable?How can I do this?