How do peolpe share the same content/layout across pages in WinRT/Metro
-
12-12-2019 - |
Question
How do share some general layout and content on all my pages in windows store apps?
Can one define a kind of "masterpage"?
Solution
Since you mentioned master page equivalent approach, I found a link and just wanted to share. Hope this would give better idea on this.
OTHER TIPS
In a basic sense you define a model that you use to display data. You pass an instance of this model to each page. The controls on each page a re data bound to the model context. So you setup a template of sorts for that data and link that to the controls. its called MVVM. MVVM stands for Model - View - ViewModel. Here are a couple good examples:
http://www.codeproject.com/Articles/391783/An-Address-Book-Application-Made-in-MVVM-For-Metro
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow