Questions tagged [prism]

Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Windows 10 UWP, and Xamarin Forms.

Prism is an open source framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Windows 10 UWP, and Xamarin Forms.

Prism provides an implementation of a collection of design patterns that are helpful in writing well-structured and maintainable XAML applications, including MVVM, dependency injection, commands, event aggregation, and others.

Prism's core functionality is a shared code base in a Portable Class Library targeting these platforms. Those things that need to be platform specific are implemented in the respective libraries for the target platform.

Prism also provides great integration of these patterns with the target platform. For example, Prism for UWP and Xamarin Forms allows you to use an abstraction for navigation that is unit testable, but that layers on top of the platform concepts and APIs for navigation so that you can fully leverage what the platform itself has to offer, but done in the MVVM way.

For more information visit the project site https://github.com/PrismLibrary/Prism.

You can find the latest documentation here.

Samples

Some samples for using Prism with WPF, UWP and Xamarin Forms can be found here:

WPF

UWP

Xamarin Forms

4433 questions
141
votes
3 answers

What is Prism for WPF?

I've come across something called Prism a lot recently. Microsoft, who run the project, describe it as Guidelines for composite applications in WPF and Silverlight. Even after reading the more detailed descriptions out there, I have next to no…
Noldorin
  • 144,213
  • 56
  • 264
  • 302
49
votes
2 answers

WPF/Silverlight - Prism - Resources for beginners

Official Websites Composite Application Guidance for WPF and Silverlight patterns & practices: Composite WPF and Silverlight Articles Composite Web Apps With Prism Podcasts PRISM for Silverlight - Connected Show Videocasts SlickThought.Net -…
MicTech
  • 42,457
  • 14
  • 62
  • 79
39
votes
1 answer

MVVM Light + Unity or Prism?

I am a little out-of-date in WPF right now and would be interested to hear peoples opinions on the latest version of Prism (which I used a couple of versions ago) vs an MVVM Light + Unity approach (which I have never done - decent examples URLs…
David
  • 682
  • 2
  • 9
  • 15
39
votes
2 answers

MVVM: Modified model, how to correctly update ViewModel and View?

Case Say I have a Person class, a PersonViewModel and a PersonView. Updating properties from PersonView to the Person model is simple enough. PersonViewModel contains a Person object and has public properties the PersonView binds to in order to…
ndsc
  • 1,173
  • 2
  • 13
  • 22
36
votes
3 answers

WPF/Prism: What is a UNITY Container?

Can someone please explain to me the notion of a Unity Container like I'm a 6 year old kid? How does it work and what does it do?
Shai UI
  • 50,568
  • 73
  • 204
  • 309
35
votes
4 answers

MVVM, Unity, Prism, MEF, Caliburn - What should I use?

Please help - I'm getting lost! I'm writing a small desktop application which has some controls and some screen. This should later be integrated with a small web site, also having some screens. The idea is to let the user edit videos and select…
Avi
  • 15,696
  • 9
  • 39
  • 54
33
votes
3 answers

prism vs mvvm light for wpf

We are starting a WPF with MVVM project and have to decide on PRISM or MVVM Light (I am new to both these frameworks). I have read through a few posts but still have a few questions. Can someone please throw some light on the following aspects…
Padmaja
  • 447
  • 2
  • 5
  • 11
33
votes
5 answers

MVVM: Binding to Model while keeping Model in sync with a server version

I've spent quite some time to try and find an elegant solution for the following challenge. I've been unable to find a solution that's more than a hack around the problem. I've got a simple setup of a View, ViewModel and a Model. I will keep it very…
ndsc
  • 1,173
  • 2
  • 13
  • 22
29
votes
5 answers

WPF tab control and MVVM selection

I have a TabControl in an MVVM WPF application. It is defined as follows.
NZJames
  • 4,963
  • 15
  • 50
  • 100
29
votes
6 answers

WPF MVVM dialog example

Does anyone have any examples of showing a window dialog using MVVM (Prism)? - for example a configuration settings window when a command is executed. All of the examples I've seen use the mediator pattern which is fine, but they also all have a…
Oll
  • 945
  • 1
  • 14
  • 23
28
votes
4 answers

Custom MVVM implementation Vs. PRISM

This question is inspired from this closed question: What does Prism actually offer the developer? And is it worth it? I have already implemented my own custom MVVM implementations in enterprise applications. I am interested in knowing: Why should…
akjoshi
  • 15,374
  • 13
  • 103
  • 121
26
votes
3 answers

How to implement the new PrismApplication to replace the Bootstrapper class

Since the Bootstrapper Class is obsolete with Prism 7 I would like to change my C# WPF App using the PrismApplication Class. Does anybody know how to refactor a Prism 6 App using the Bootstrapper : UnityBootstrapper to the new PrismApplication? I´m…
TomTomB
  • 419
  • 1
  • 4
  • 13
25
votes
7 answers

How to use async method in DelegateCommand

I want to link async method to a delegate command in prism framework in Xamarin.Forms and my question is how to do it? Is below solution correct? Is there exist any pitfall? (deadlock, UI slow or freezing, bad practices, ...) { // My view model…
sorosh_sabz
  • 2,356
  • 2
  • 32
  • 53
23
votes
11 answers

WPF Application fails on startup with TypeInitializationException

I have a simple WPF application which I am trying to start. I am following the Microsoft Patterns and Practices "Composite Application Guidance for WPF". I've followed their instructions however my WPF application fails immediately with a…
Adrian Clark
  • 12,449
  • 5
  • 36
  • 42
22
votes
4 answers

WPF-Prism CanExecute method not being called

I am coding a simple login UserControl with two TextBoxes (Username and Password) and a Login button. I want the Login button to be enabled only when the username and password fields are filled in. I am using Prism and MVVM. The LoginViewModel…
Naresh
  • 23,937
  • 33
  • 132
  • 204
1
2 3
99 100