简体   繁体   中英

Change the NavigationFrame Content on Button Click in WPF

I am new to WPF. I went through many questions on StackOverFlow regarding changing the contents of the frame,but I couldnt find an appropriate one.

Here is the scenario. I have a window having a grid. The grid is splitted up into two parts. On Left Hand Grid I have got Tile Layout having Tiles. and On Right Hand side I have got Navigation Frame. Left Hand Side Grid is fixed. When I click on Left Hand Grid Tiles I need to display or change the Navigation Frame on clicking different tiles. How do I achieve NavigationFrame Content change on button Click?

There is no NavigationFrame
I assume you mean a regular frame

Frame1.Navigate(new Page1());

Or you can create your Pages in advance

A frame holds a Page
Are you sure that is what you want?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM