Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

set the content of a frame from different page - WPF C#

$
0
0

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?


Viewing all articles
Browse latest Browse all 12111

Trending Articles