Reputation: 1681
I have a WPF Parent Window that contains a frame with a main menu page. I need that page and any other pages within the frame to communicate to an object of the main window.
How exactly can i accomplish this? Do I need to use delegates?
Upvotes: 0
Views: 121
Reputation: 4733
The simpliest solution would be to create new class file
Class MainWindowAccesser
{
public static MainWindow mw;
}
and then and in MainWindow constructor set
MainWindowAccesser.mw = this;
Upvotes: 1