Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a concept of a master page (like in asp.net) for WPF?

I've started a WPF (web-based) application and it has multiple pages. I want to implement the concept of a Master page in WPF, so that when I make changes in the design/layout of one page then all the others pages will follow suit without all the copy and paste.

like image 643
asunrey Avatar asked Mar 18 '11 23:03

asunrey


2 Answers

I don't think the concept of Master Page is valid in WPF basically because there are no pages. In WPF exists styles, templates and DataTemplates. Not only that, using the DockPanel and other containers you can achieve most of the functionality provided by ASP.NET Master Pages.

In any case, if you still the need of the master pages, I suggest check this article: http://www.codeproject.com/KB/WPF/WPFMasterPageControl.aspx

HTH

like image 123
Marcote Avatar answered Nov 15 '22 20:11

Marcote


The WPF Magellan Framework (open source) have Master pages (and other several interesting concepts)

enter image description here

like image 37
Eduardo Molteni Avatar answered Nov 15 '22 21:11

Eduardo Molteni