Hello, I'm starting to work with WPF and my situation is as follows:
- I have a MainWindow screen, which persists the application.
- MainWindow calls a new RuleDetailsDialog screen on a given function.
- As soon as a process that closes the RuleDetailsDialog screen is executed I need to update the MainWindow.
In MainWindow, the method that calls theDetailsDialog Rule is below:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
DataContext = this;
}
private void AddRegra(object sender, RoutedEventArgs e)
{
RegraDetailsDialog rdd = new RegraDetailsDialog();
rdd.Show();
}
private void AtualizaTela(object sender, RoutedEventArgs e)
{
MessageBox.Show("teste");
}
}
How do I, once the DetailsDialog Rule is closed I can call the AtualizaTela
method on MainWindow?