Reputation: 3471
I need to create a Windows8 application but there are multiple elements like progress bar, same app bar and other components that are been used over and over again. In previous application i have been applying these elements in every page. Is there some approach by which I can make a master page and inhert an use it in every page. As we can do in ASP.Net Master page concept?
Upvotes: 3
Views: 3352
Reputation: 859
Here is nice tutorial how to create master page for Windows 8 application
Windows 8 master page tutorial
Upvotes: 1
Reputation: 3006
You have to deal with frames :
<Page x:Name="MainPage">
<Grid x:Name="LayoutRoot">
<Frame x:Name="BasicLayout"/>
<Frame x:Name="SpecificLayout"/>
</Grid>
</Page>
Use BasicLayout
to show components that are been used over and over again.
Use SpecificLayout
to show your page-specific content (So you don't directly navigate from the "master" Frame
, but from the SpecificLayout
one).
Upvotes: 1