I have a window with a grid in it. This window has a button, when this button is pressed, a modal dialog is shown.
code:
private void Edit_Click6S(object sender, RoutedEventArgs e)
{
TextEditWindow editWindow = new TextEditWindow();
editWindow.ShowDialog();
}
When the user is finished with this dialog, the following code is called:
Window.Close()
But the grid of the parent window is not updated. Is there a way to reinitialize the parent windows grid when the child dialog is closed? Is so, How?
Since dialogs block execution until they are closed, you can populate the grid directly after your
ShowDialog()call:Otherwise you can handle the dialog’s Closed event