BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

Project and Class Templates for Prism and Prism with Unity

by Jonathan Allen on May 30, 2013 |

Building Windows Store apps using Prism can be a rather tedious and error prone endeavor. When using it correctly, practically all models and views have to have their base classes replaced with Prism alternatives. Even the App singleton has to be swapped out with one that derives from MvvmAppBase.

To make things easier on developers, David Britch has released a set of project and class templates for Prism and Prism with Unity. David is known for writing the documentation for the Windows RT version of Prism. And though he works with Microsoft’s Patterns and Practices team, these templates are not part of the official release.

David describes Prism for the Windows Runtime (a.k.a. Windows Store) as

Prism for the Windows Runtime provides two libraries that help developers create managed Windows Store apps:

  • The Microsoft.Practices.Prism.StoreApps library provides support for bootstrapping MVVM apps, state management, validation of user input, navigation, data binding, commands, Flyouts, settings, and search.
  • The Microsoft.Practices.Prism.PubSubEvents Portable Class Library allows communication between loosely coupled components in an app, thus helping to reduce dependencies between assemblies in a Visual Studio solution.

The chart below shows the common categories of classes and their Prism base class. All base classes are in the Microsoft.Practices.Prism.StoreApps namespace.

  • App - MvvmAppBase
  • Primary Views - VisualStateAwarePage
  • Secondary Views - FlyoutView
  • View-Models - ViewModel
  • Models - ValidatableBindableBase

For more information on Prism check out David’s free book, Prism for the Windows Runtime.

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT