Exporting Project Templates

Imagine you often create WPF applications that need implementing menus. It would be interesting to have a project template that automatically implements basic menus so that you don’t need to rewrite a lot of code each time. Create a new WPF project with Visual Basic and name it as WpfMenuProject. When ready, type the following XAML code inside the Grid tags to implement basic menu functionalities:

image

Before going on, save the project. When saved, select the File, Export Template command. The first choice is between the project and item template, as shown in Figure 56.1. Leave unchanged the selection on Project Template ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.