The Prism Template pack, available on Visual Studio Marketplace, offers a collection of helpful snippets to speed up your development. To use the snippets in Visual Studio, simply type the shortcut (e.g. propp) and press TAB.
Here is a quick list of each as a handy reference:
Generate a property with a backing field, that depends on
BindableBase. This means it will generate a standard property, but with a setter that uses the
SetProperty method, e.g.
DelegateCommand property, with backing field and the associated Execute method, e.g.
DelegateCommand property, with backing field as well as its associated Execute method. It also creates the CanExecute method for you, e.g.
Similar to the cmd snippet mentioned above, but this one generates a generic
Similar to the cmdfull snippet mentioned above, but this one generates a generic
DelegateCommand property with its associated Execute and CanExecute Methods
These snippets are incredibly handy when working with Prism as it really makes it easy to add the code elements essential for the framework to work smoothly.
To read more about the Prism Library, visit http://prismlibrary.com/
Thank you for reading. Until next time, keep coding!