Herrozerro
Herrozerro

Reputation: 1681

Affecting a parent object from a frame page

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

Answers (1)

Peuczynski
Peuczynski

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

Related Questions