WPFTemplate is a simple project template for new C# WPF projects that allows you to quickly get a WPF project up and running. Out of the box, it has the following features ready to use:
- Data binding using the MVVM coding style (basic implementation for
INotifyPropertyChanged) - A templated
RelayCommandclass for data binding forButtonCommands. - Example of pushing and popping views using MVVM
- Clone the project or use this project as a template
- Go into the Project properties for
WPFTemplateand change theAssembly nameandDefault namespace(Right click theWPFTemplateproject in Solution Explorer and click Properties) - Rename the project itself (Right click the
WPFTemplateproject in Solution Explorer and choose Rename) - Rename the solution (Right click the
WPFTemplatesolution in Solution Explorer and choose Rename) - Open any
.csfile, right click theWPFTemplatenamespace word, and choose Rename to rename the namespace throughout your project - Open
AssemblyInfo.cs(under Properties) and rename theAssemblyTitleandAssemblyProduct - Close the solution in Visual Studio
- Open the project's file location on disk and rename
WPFTemplate - Open the
.slnfile in your favorite text editor and replaceWPFTemplateto the folder name from the previous step - Go through each of the views.xaml files and App.xaml and replace the
WPFTemplatename with your new namespace - Change license and other materials as necessary!
You may also want to delete the .git folder (if you cloned the project) and run git init and git add . to avoid any trouble with the fact that you cloned an existing project.
Is it annoying to have to do all that? Yup. Does it take too long? Nope. Perhaps someday we'll be able to automate the process or provide an actual VS-compatible project template :)
Glad you asked! There are always things that can be done on an open-source project: fix bugs, add new features, and more! Check out the issues tab of this repository and take a look at what bugs have been reported and which features have been requested. If you'd like to request a feature or file a bug, by all means, please do so!
MIT License. Thanks for using this template!