问题
I have some pages in the win8 application, most of which have a similar layout, I use Frame.Navigate
to switch the pages. Just wonder if there is something like MasterPage
in asp.net webform/mvc.
回答1:
Just create a page with the layout you want and then use templates to customize it for particular views. You could have one main view .xaml file and then create a resource dictionary file (for separation purposes) for each different way you use it.
Edit: I found someone who made a "Master Page" for wpf. See here. You could do something similar for metro.
来源:https://stackoverflow.com/questions/12532155/is-there-any-masterpage-in-windows8-development