I have two WPF windows. One is the main window and the other is some configuration window.
I would like the configuration window to send and event to the main window.
Any idea how I an accomplish it?
This is how I create and open the configuration window :
private void MenuItem_Click(object sender, RoutedEventArgs e)
{
ConfigPage Confwin= new ConfigPage();
Confwin.Owner = this;
Confwin.Show();
}
You can define any event in your child window class and subscribe to it before showing the window.
Main Window
Child window