Questions tagged [prism-4]

Prism, formerly known as "Composite Application Guidance", provides guidance designed to help you more easily design and build rich, flexible, and easy-to-maintain Windows Presentation Foundation (WPF) desktop applications, Silverlight Rich Internet Applications (RIAs), and Windows Phone 7 applications. Prism is currently at version 4 which was released on November 2010.

Overview

Prism provides guidance designed to help you more easily design and build rich, flexible, and easy-to-maintain Windows Presentation Foundation (WPF) desktop applications, Silverlight Rich Internet Applications (RIAs), and Windows Phone 7 applications. Using design patterns that embody important architectural design principles, such as separation of concerns and loose coupling, Prism helps you to design and build applications using loosely coupled components that can evolve independently but that can be easily and seamlessly integrated into the overall application. These types of applications are known as composite applications.

Prism includes reference implementations, QuickStarts, reusable library code (the Prism Library), and extensive documentation. This version of Prism targets the Microsoft .NET Framework 4.0 and Silverlight 4 and includes new guidance around the Model-View-ViewModel (MVVM) pattern, navigation, and the Managed Extensibility Framework (MEF). Because Prism is built on the .NET Framework 4.0 (which includes WPF) and Silverlight 4, familiarity with these technologies is useful for evaluating and adopting Prism.

Intended Audience

Prism is intended for software developers building WPF or Silverlight applications that typically feature multiple screens, rich user interaction and data visualization, and that embody significant presentation and business logic. These applications typically interact with a number of back-end systems and services and, using a layered architecture, may be physically deployed across multiple tiers. It is expected that the application will evolve significantly over its lifetime in response to new requirements and business opportunities. In short, these applications are "built to last" and "built for change." Applications that do not demand these characteristics may not benefit from using Prism.

It should be noted that while Prism is not difficult to learn, developers must be ready and willing to embrace patterns and practices that may be new to them. Management understanding and commitment is crucial, and the project deadline must accommodate an investment of time up front for learning these patterns and practices.

Excerpt from Prism's page on Codeplex, visit it for more information.

266 questions
30
votes
4 answers

Prism v4: Unity or MEF?

I downloaded Prism v4 and ran the installer. I went into the directory and ran the two following batch files: Desktop only - Open Modularity With Mef QuickStart.bat Desktop only - Open Modularity With Unity QuickStart.bat When I compile these…
myermian
  • 31,823
  • 24
  • 123
  • 215
27
votes
1 answer

How to set a relative path/Uri in ResourceDictionary's source

I am trying to refer to a MergedDictionaries.SharedStyles project which has all Styles that has to be used allover application. So here i have different styles under different folders as Resource Dictionaries. so finally i have Merged them into…
WPFKK
  • 1,419
  • 3
  • 20
  • 42
21
votes
2 answers

PRISM + MEF + MVVM -- Not sure where to really start?

What I'm using: Visual Studio 2010 Microsoft .NET Framework 4 Prism v4 What I am trying to figure out is how to get started with Prism + MEF while maintaining the MVVM pattern. When I go into the Prism Quickstarts, it has a Prism + MEF, but the…
michael
  • 14,844
  • 28
  • 89
  • 177
19
votes
1 answer

Prism 4: RequestNavigate() not working

I am building a demo app to learn the navigation features of Prism 4. The app has two modules--each one has three Views: A UserControl with a text block ("Welcome to Module A") A RibbonTab (using a Region Adapter), and An Outlook-style Task Button…
David Veeneman
  • 18,912
  • 32
  • 122
  • 187
16
votes
3 answers

WPF Prism - What is the point of using Prism Regions?

I'm just wondering what the point of regions are. I guess I don't understand the problem they solve. For example, I see a lot of people using regions for a navigation region, but then why not just have an ItemsControl bound to an…
michael
  • 14,844
  • 28
  • 89
  • 177
11
votes
1 answer

Prism 4 ILoggerFacade for Log4Net?

I am converting from Prism 2.1 to Prism 4, and I need to write an ILoggerFacade class for Log4Net. My old code from Prism 2.1 no longer works. Does anyone have sample code for an ILoggerFacade class they'd be willing to share? Thanks for your help.
David Veeneman
  • 18,912
  • 32
  • 122
  • 187
8
votes
2 answers

Is it possible to write Prism apps such that they can be tested without the UI?

Disclaimer: Prism Novice. I'm reading up furiously to make up for lost time though :) Context: I need to write automated acceptance tests for a WPF application built using Prism. Issues: I find that it is convoluted trying to compose the backing…
Gishu
  • 134,492
  • 47
  • 225
  • 308
6
votes
2 answers

How to limit prism 4 to load only special signed modules?

I have a WPF Desktop application using Prism 4, in my bootstrapper i have the following code : protected override IModuleCatalog CreateModuleCatalog() { var filepath = Assembly.GetExecutingAssembly().Location; var path =…
Ehsan Zargar Ershadi
  • 24,115
  • 17
  • 65
  • 95
6
votes
2 answers

Prism / MEF: How to RegisterViewWithRegion Without Hard-Coding the Region Name

We are building a WPF Prism application. We have different developers working on different module projects, and multiple modules are injected into the main Application Shell. The main application is also a separate project. We also want to be able…
D'Hag
  • 591
  • 8
  • 11
6
votes
1 answer

Sharing styles between modules in Silverlight applications based on Prism 4

I need to use the styles in several modules in Silverlight application based on Prism 4. What is the best approach for this?
unlim
  • 109
  • 6
6
votes
1 answer

Access ViewModel / DataConext inside ContextMenu

How can I get the original DataContext of the UserControl inside of a ContextMenu. The code below, you can see that there is a Button in the DataTemplate, which binds correctly. However, when trying to bind the datasource of the contextmenu, I…
Michael G
  • 6,695
  • 2
  • 41
  • 59
6
votes
3 answers

How to create a new view every time navigation occurs in PRISM?

I'm using WPF4 and PRISM4 for my new project. There is a single module with several views in it. The DI is done with unity. When I navigate from ViewA to ViewB for the first time, the ViewB is created and its constructor is called. But when I try…
Valentin V
  • 24,971
  • 33
  • 103
  • 152
6
votes
4 answers

How to utilise Event aggregator in MEF?

I am running the latest PRISM 4.2. Unfortunately the Event Aggregator tutorial in the documentation is driven via Unity instead of MEF. And I can't get it running under MEF. App.xaml.cs public partial class App : Application { [Import] …
Houman
  • 64,245
  • 87
  • 278
  • 460
6
votes
1 answer

How can i start my application as "Run as Administrator" forcefully?

In my application,I am writing some values in application settings file. As i am working with prism I have some module and one shell project. After installing setup Case: 1 When i have not set compatibility mode as "Run as Administrator". Running…
user1584245
6
votes
1 answer

DataTemplate x:Shared=false has no impact on the view

I am using datatemplate to load my views using PRISM 4 discovery. I have a need to create the view/viewmodel multiple times rather than reuse existing instances so I set x:Shared=false in the resource but it only has impact on the viewmodel. I can…
DotnetEng
  • 63
  • 1
  • 4
1
2 3
17 18