I have a frame called mainFrame
which is inside MainWindows
. I have a page called page1
, when the app starts, I dynamically set the content of the mainFrame
to page1
.
Now, suppose I have another page called page2
. I have a button inside page1
, I want When I click on that button, mainFrame
's content changes to page2
, But I can't access mainFrame
from page1
.
How can I do this?