tags:

views:

86

answers:

2

Guys, I have a basic WPF application. Contains App.xaml as always and a Mainwindow.xaml. I've created also some pages like page1/2/3. I want to load for example page1.xaml in mainwindow.xaml. Is this possible? And also want to close it so the content of mainwindow.xaml will stay in there.

I dont want this to be a navigation application with the left/right arrows at the top.

A: 

You can add a frame to your main page and load the pages on it.

Maurizio Reginelli
A: 

Adding a frame and setting the source for the frame like makes my day :)

frame1.Source = new Uri("Page1.xaml", UriKind.RelativeOrAbsolute);
Shift