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

Avoiding fatter view models in MVVM

I am working on a WPF application that follows an MVVM pattern. Inspite of moving the validation into services, I am ending up with a fat viewmodels that runs for several lines of code(in my case close to 1000 lines). I have added the interface for…
Hunter
  • 2,370
  • 2
  • 20
  • 24
4
votes
2 answers

Strange exception in Prism application

I am trying to get a Prism application to start up, and am getting a very strange error: InvalidOperationException: ServiceLocationProvider must be set. I am using MainWindow in the main (module host) application as the region for a single main…
ProfK
  • 49,207
  • 121
  • 399
  • 775
4
votes
1 answer

ASP.net like form based authentication in WPF MVVM prism

Having working on WPF MVVM (prism) application, I would like to implement authentication as it is for ASP.NET form based authentication. I would like to restrict users going to screens where authorization is required. how can this be implemented in…
kuhajeyan
  • 10,727
  • 10
  • 46
  • 71
3
votes
3 answers

load Prism modules from dll files (at startup)

Atm in my application I do like this: class Bootstrapper : UnityBootstrapper { protected override DependencyObject CreateShell() { return Container.Resolve(); } protected override void…
Omu
  • 69,856
  • 92
  • 277
  • 407
3
votes
2 answers

Prism - How to import IRegionManager in ViewModel using MEF

How do we inject IRegionManager in the ViewModel using MEF Container. I have to switch view in my ViewModel's Command delegate. Here is the brief description of what I am doing. I have an entity called Product whose list is displayed in one View…
Jatin
  • 4,023
  • 10
  • 60
  • 107
3
votes
2 answers

Dynamic binding with User Control does not work as Static is working in Silverlight and MVVM

I have created sample User Control RestrictedBox.xaml
imdadhusen
  • 2,493
  • 7
  • 40
  • 75
3
votes
2 answers

Not able to bind UserControl from main View

I have created user control which contain TextBox and PasswordBox. RestrictedBox.xaml
imdadhusen
  • 2,493
  • 7
  • 40
  • 75
3
votes
2 answers

How to get actual value and validate of CustomTextbox Text in ViewModel

I have created custom component for displaying text with either Simple or Password mode, intention to develop this control is the Silverlight does not support custom TextMode (like Password or Text). This is my requirement In addition to the access…
imdadhusen
  • 2,493
  • 7
  • 40
  • 75
3
votes
1 answer

How to use PRISM within C# windows service applications?

I'm trying to create an windows service application which i would be able to add modules in it as we do in WPF and Silverlight. This is how i went throw : public static class Program { public static string CurrentAppPath { get; set; } …
Ehsan Zargar Ershadi
  • 24,115
  • 17
  • 65
  • 95
3
votes
2 answers

Unit-testing Prism with Service Locator?

I am building a Prism 4 app, and I use the ServiceLocator to instantiate objects. The ServiceLocator is causing unit testing problems, and that leads me to wonder whether I should go back to injecting the IoC container into each class that needs…
David Veeneman
  • 18,912
  • 32
  • 122
  • 187
3
votes
1 answer

Whats the status of Prism integration in Autofac?

Integration into Prism was talked about in the 2.1.x time frame, we are @ 2.4.x, Prism 4 is out now and the RIStockTrader Example in /contrib is just a default XAML project. Should it work? If so, anyone have a simple example of a Silverlight Shell…
adamhill
  • 296
  • 2
  • 10
3
votes
1 answer

WPF, Prism, MEF. Register region adapter within a module?

Is it possible to register a region adapter within a module? I have a ContentControl in my Shell.xaml set to region "MainRegion" that currently gets populated with a module containing the AvalonDock control. I currently have the AvalonDock region…
Chris Klepeis
  • 9,783
  • 16
  • 83
  • 149
3
votes
1 answer

Prism CompositeEvent not fired with anonymous filter delegate specified by helper class

I have a TestEvent class as mentioned below: class TestEvent: CompositePresentationEvent { public void Subscribe(Action action, int number) { this.Subscribe(action, ThreadOption.PublisherThread, false,…
Muhammad Hasan Khan
  • 34,648
  • 16
  • 88
  • 131
3
votes
2 answers

MVVM framework AND Prism 4?

I just read this question. It has some nice answers, but they are over 1-year-old, and a lot have changed in this space over the last year. Some of the most popular frameworks have come out in a new mayor release such as Prism and MVVM Light…
Karsten
  • 8,015
  • 8
  • 48
  • 83
3
votes
0 answers

WPF Prism Async Initialization of Modules

I have a PRISM v4 Project that uses several modules that are loaded at startup or when the user needs them. One of those modules has to pull in a lot of data so i made the most cost intesive database calls async. This works pretty well except for…
narain
  • 392
  • 5
  • 18
1 2
3
17 18