Google News
logo
WPF - Interview Questions
What is Prism in WPF?
Prism (Composite Application Guidance for WPF and Silverlight) is designed to build applications in WPF and Silverlight that have a single code base. It helps to develop the client application in a modular fashion so that complexity of a large application can be divided into simpler modules.
 
In other words “Prism is developed by Microsoft Patterns and Practices and provides guidance designed to help you to more easily design and build rich, flexible and easy-to-maintain Windows Presentation Foundation (WPF) desktop applications.”.
 
Architecture : The following diagram shows basic architecture :

Architecture

App.XAML :
Call Boot Strapper on Application_Startup.

BootStrapper : This is a class file that calls Shell (Shell.XAML) and so creates catalogue of module.

Shell : This is like a Master Page having regions.

Region : It is like placeholders to register views.

View : This is XAML file having User Interface

Module : Each module can have one or more View(s) which are registered to Region (in the Shell) through Region Manager.
Advertisement