Add Master Page (with presenter) Recipe
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. |
The guidance package includes the recipe named Add Master Page (with presenter). After you install the guidance package, the recipe is available on the Solution Explorer shortcut menu that appears when you right-click a folder in a Web site or the Web site root node. Figure 1 illustrates the recipe menu.
Figure 19
The Add Master Page (with presenter) recipe menu
When you run the recipe, the recipe framework displays a wizard that you can use to customize the generated code. Figure 2 illustrates the wizard.
Figure 20
The Add Master Page (with presenter) recipe wizard
For detailed instructions about how to use the Add Master Page (with presenter) recipe, see How to: Add a Master Page with a Presenter.
Implementation Details
You can find the recipe definition split across the files CreateWebClientFactoryMasterView.xml and CreateWebClientFactoryViewCommon.xml (these files are located in subfolders under the Recipes folder of the WebClientFactoryPackage project).
The CreateWebClientFactoryViewCommon.xml file is shared by the Add Page (with presenter) recipe, the Add Master Page (with presenter) recipe, and the Add User Control (with presenter) recipe. All three recipes have a similar implementation. For more implementation details, see the section “Implementation Details” in Add Page (with presenter) Recipe.