Questions tagged [prism-6]

Prism 6 is a fully open source version of the Prism guidance originally produced by Microsoft patterns & practices. The core team members were all part of the p&p team that developed Prism 1 through 5, and the effort has now been turned over to the open source community to keep it alive and thriving to support the .NET community.

Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Windows 10 UWP, and Xamarin Forms. Separate releases are available for each platform and those will be developed on independent timelines. 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, EventAggregator, 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.

Prism 6 is a fully open source version of the Prism guidance originally produced by Microsoft patterns & practices. The core team members were all part of the p&p team that developed Prism 1 through 5, and the effort has now been turned over to the open source community to keep it alive and thriving to support the .NET community.

148 questions
40
votes
1 answer

Which IoC container is better with Prism.Forms

I am in the start of a new Prism.Forms project and I was wondering which of the various IoC containers (Autofac, Dryloc, Ninject or Unity) would be best to move forward with. I do not know if this is true, but I read somewhere that Unity is no…
Martin Robins
  • 6,033
  • 10
  • 58
  • 95
9
votes
2 answers

Migrate Prism 4 to Prism 6 - CompositePresentationEvent

I want to migrate a project written with Prism 4 into Prism 6. In Prism 4 the CompositePresentationEvent type is under Microsoft.Practices.Composite.Presentation.Events namespace. But when I pulled Prism 6 from nugget and removed old Prism 4…
hardywang
  • 4,864
  • 11
  • 65
  • 101
8
votes
2 answers

General dialog window for WPF and Prism

I've been through too much pain trying to switch between managing VM state for various views in the shell window, together with VM state for numerous edit dialogues, modal or non-modal, and state for the windows themselves. Now I wish to redo with…
ProfK
  • 49,207
  • 121
  • 399
  • 775
8
votes
2 answers

Pattern to dispose ViewModels?

We started a WPF project, with Prism, and I've come to a question: Sometimes in the ViewModel, we register some events or started services that we have to stop before closing. It means that when I close the application, I need to release the…
J4N
  • 19,480
  • 39
  • 187
  • 340
7
votes
1 answer

How can a C++/CLI project reference a portable class library?

We've got a bunch of C# code that references Prism.Core. Prism.Core is a portable class library. When we reference this in C++/CLI and try to use a delegate command, we get: C4691: 'System::Object': type referenced was expected in unreferenced…
intinit
  • 480
  • 4
  • 14
4
votes
4 answers

How to release/caching image resources after get them using XAML

Currently I’m working in a WPF project using prism 6, avoiding code-behind as much as possible. I have a variable in the ViewModel which contains the local path where the image in question is stored. In the View, I bind the source property of the…
mkstyl3
  • 55
  • 7
4
votes
1 answer

Use Prism.Unity.UnityBootstrapper with Unity.IUnityContainer

I’ve upgraded my project today to Prism 6.3.0 and Unity 5.3.1. Before that, I had Prism 5 and Unity 4. Now I’m running into problems with the Prism.Unity.UnityBootstrapper: it seems that the Container field is still a…
Informagic
  • 1,132
  • 1
  • 11
  • 23
4
votes
2 answers

XAML Namespace for Prism 6

For a couple of months I've been using Prism 6 with the following XAML namespace declaration: xmlns:prism="http://www.codeplex.com/prism" But I noticed this namespace URL (which redirects to GitHub) also…
rtev
  • 1,102
  • 12
  • 24
3
votes
1 answer

How do I Configure the Module Catalog in Prism using DryIoc instead of Unity?

I'm working with the Prism Library WPF Samples here (specifically, this one). I'm trying to convert the sample's bootstrapper from using the Unity container to DryIoc. The original code looks like this: class Bootstrapper : UnityBootstrapper { …
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
3
votes
1 answer

How to manage content for multiple TabControlItems in a Prism application?

I am witting a new WPF application using C# with the help of Prism 6. and the MVVM design pattern. I have a main windows with a Top, Right, and a Center region. On the top region I have a toolbar, when a user clicks "Show Message" button, I show a…
Junior
  • 11,602
  • 27
  • 106
  • 212
3
votes
2 answers

ViewModelLocator in Prism 6 not working

I am trying to implement ViewModelLocator pattern in my application, but ViewModel is not hooked up to the view. I am new to prism, please let me know if I am missing anything here. View:
3
votes
2 answers

Xamarin Forms, Prism Forms & IoC

I have a Xamarin Forms application that I originally developed using Prism and Unity. I am finding Unity to be rather slow when first resolving an object though once that first time has passed all subsequent resolutions of the same object type are…
Martin Robins
  • 6,033
  • 10
  • 58
  • 95
3
votes
1 answer

How to register types by convention using Unity with Prism?

I have a WPF app that uses the Prism.Wpf and Prism.Unity NuGet packages (both 6.3.0). I'm currently registering types in the Unity container manually in a bootstrapper class (see below) and everything is working great. internal class Bootstrapper :…
Peet Whittaker
  • 750
  • 6
  • 31
3
votes
1 answer

Understanding Modules in PRISM

I just wanted to confirm my understanding of prism modules. I my thought was a module may consist of many features with many views. For example I want to create UserManagement module that consists of the following features which have their own main…
Arcadian
  • 4,312
  • 12
  • 64
  • 107
3
votes
2 answers

How to handle a key press event in ViewModel using Prism 6 in WPF?

I have a situation where I need to handle a keypress event, it can be any from A-Z, 0-9 but I need to handle that in ViewModel. WHich key is pressed should be passed nito the ViewModel. I am using prism 6.0 so the View1ViewModel is Auto-wired with…
Debhere
  • 1,055
  • 2
  • 19
  • 41
1
2 3
9 10