When you show a childwindow dialog , how do you determine if the user have click ok or cancel dialog button. Im use to winforms, Im just now getting use to silverlight. Its been three days. lololol
ChildWindow childWindow = new NavigationChildWindow("Testing", "Testing 1, 2, 3");
childWindow .Show();
//I want to check childWindow dialog result right here
if( childWindow dialog result == Ok)
{
// do something
}
else
{
// do this
}
Silverlight Child Wild
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

David SmithRank #999 · 2K reputationPosted Aug 12, 2011, 10:15 AM EDT
private void ChildWindow_Closed(object sender, EventArgs e)
{
if (this.DialogResult == true)
{
app.GoToPreviousPage();
}
else
{
}
}