是否有windows8的开发任何母版 [英] Is there any MasterPage in windows8 development
问题描述
我在win8的应用程序的某些页面,其中大部分有类似的布局,我用 Frame.Navigate
来切换页面。只是不知道是否有类似母版
在asp.net表单/ MVC。
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.
推荐答案
只需创建你想要的布局的页面,然后使用模板自定义为特定的观点。你可以有一个主要观点的.xaml文件,然后创建为你使用它的每个不同的方式资源字典文件(用于分离的目的)
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.
编辑:
我发现有人谁为WPF做了一个母版页。请参见这里。你可以做地铁类似的事情。
I found someone who made a "Master Page" for wpf. See here. You could do something similar for metro.
这篇关于是否有windows8的开发任何母版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!