BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Project and Class Templates for Prism and Prism with Unity

| by Jonathan Allen Follow 128 Followers on May 30, 2013. Estimated reading time: 1 minute |

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.

Rate this Article

Adoption Stage
Style

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

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT