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
0
votes
1 answer

How to set DataContext of elements based on datacontext of ContentControl on same UserControl

Following is the section from My Shell:
0
votes
1 answer

Unit testing the view model that is based on prism and requires region manager, composition container to be registered

I am Unit testing view model that uses prism. While calling a constructor of view model class i am required to pass region manager, composition container. How to initialize region manager in the unit Test setup.
priya
  • 852
  • 18
  • 39
0
votes
1 answer

Reading PRISM & Unity configuration from multiple files

Can we have Unity configuration in file other than app.config file of the application? If yes, how to do it? Can we combine unity configuration spread across multiple files? How to define Unity configuration in the XAML file? (PRISM modules can…
Learner
  • 4,661
  • 9
  • 56
  • 102
0
votes
2 answers

How to keep the Shell configurable with PRISM 4.1 & Unity?

I am writing a WPF application using PRISM 4.1 & Unity. The application will have every UI component configurable, including the Shell itself! E.g. I have an interface called IShell. Consumers of the app can have their own implementation of IShell…
Learner
  • 4,661
  • 9
  • 56
  • 102
0
votes
1 answer

MEF share instance between modules

I'm using PRISM/MEF for my C# application. I want to do the following, I'm really new to PRISM and maybe I'm doing something completely wrong or got something wrong but it does not work like showed below. I created two modules, where in Module1 I…
user2799180
  • 719
  • 1
  • 11
  • 29
0
votes
1 answer

Composite WPF GUI sharing SerialPort (PRISM/MEF)

I do have the following scenario: I do have a shell and two modules(moduleA.dll,moduleB.dll included via bootstrapper), this I created using PRISM4. ModuleA reads a database and from that information it should open a serial port. This module offers…
user2799180
  • 719
  • 1
  • 11
  • 29
0
votes
1 answer

How do I prevent a view from being placed on the navigation stack in Prism

I have the case in Prism where I support the SearchContract with View/ViewModel combination. The problem is this: when I leave the Search Panel open and perform multiple searches, each individual search is placed on the Navigation Stack. This means…
S. Hebert
  • 808
  • 1
  • 8
  • 18
0
votes
1 answer

Sharing Prism Views between multiple Views that contain the same region

I am trying to achieve the following pattern where the ContentRegion can have either ModuleShellView or Module2ShellView loaded/Active at any moment in time. Module2ShellView has no reference to View1 but cause View1 has been registered to Region1…
Madu Alikor
  • 2,544
  • 4
  • 21
  • 36
0
votes
2 answers

How to get a name of the active view in PRISM

I am trying to navigate to the same view (same as the active one), but with new parameters. The problem is that I struggle to find a clean way to get a currently active view's name from RegionManager
Vitalij
  • 4,587
  • 9
  • 42
  • 65
0
votes
0 answers

Assembly referring resoruce dictionary is not getting loaded in prism

I am using WPF prism for modular application development and each module that is present in the module catalog file is in different folder and they get added and removed from the region one at a time.Each module gets loaded from a its own folder and…
Kamal Kr
  • 687
  • 1
  • 10
  • 22
0
votes
2 answers

Silverlight Prism View Switching Affected By URL?

I have developed a Silverlight Business Application using Prism that requires a user to log in before they can access the main application. The Silverlight application is hosted on IIS 7.5 (port *:8086) and makes calls to WCF services hosted on the…
Izmoto
  • 1,939
  • 2
  • 17
  • 21
0
votes
1 answer

Generic type conversion in generic method

I have the following classes (some of them are in the PRISM framework and cannot be changed): public abstract class NetworkEventBase : CompositePresentationEvent where T : NetworkEventPayload { } public class NetworkEventPayload { } public…
cguedel
  • 1,092
  • 1
  • 14
  • 28
0
votes
1 answer

'System.InvalidOperationException' occurred in Microsoft.Practices.Prism.dll, while navigate to request

I get 'System.InvalidOperationException' occurred in Microsoft.Practices.Prism.dll while i perform request to navigate. I navigate to a popup region. as first time when i invoke the command, view is getting loaded. but as i close the popup view and…
kuhajeyan
  • 10,727
  • 10
  • 46
  • 71
0
votes
1 answer

Load Prism modules from DLL

Recently I took an interest in developing PRISM WPF applications. Now I'm trying to load my modules from a DLL I make after building the Modules Project (Wpf User Control Library). During the build of the modules project I copy the DLL in the debug…
Nicolas Pierre
  • 1,174
  • 1
  • 21
  • 39
0
votes
1 answer

is there any alternative available for in WPF

is there any alternative available for in WPF, nature of this tag is enable the confirmation dialog coming before you execute the any specific action. this tag supported under silverlight, but unfortunately it seems that missing under WPF. Not sure…
kuhajeyan
  • 10,727
  • 10
  • 46
  • 71