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
1
vote
0 answers

How and who's changing the model of a hierarchical (TreeView) ViewModel (MVVM)

I'm working on a small "fun" project using WPF/MVVM/Prism which main component is a TreeView showing the file structure of a certain path. The idea how the ViewModel works is taken from Josh Smiths' article…
ohmmega
  • 55
  • 6
1
vote
1 answer

'No parameterless constructor defined for this object' error has place when I use custom modal dialog in WPF Prism application

In my Prism 6 WPF MVVM application I use custom modal dialog for login of the users. This dialog produces (in XAML) the following design-time error: 'No parameterless constructor defined for this object'. Below is XAML markup of the…
Prohor
  • 141
  • 1
  • 3
  • 12
1
vote
2 answers

Is prism used with other gui-frameworks than wpf multiplatform compatible?

I was wondering if I can use the Prism framwork together with AvaloniaUI and if my app would still be multiplatform then. I only have a windows right now and it works, however, does it work with linux/macOS aswell?
Mafii
  • 7,227
  • 1
  • 35
  • 55
1
vote
1 answer

Build error for StyleCop.dll

I am trying to run the Prism sample project AdventureWorks.Shopper Problem is, when I build the project, I get the following build error : Severity Code Description Project File Line Suppression State Error The "StyleCopTask" task…
Yeasin Abedin
  • 2,081
  • 4
  • 23
  • 41
1
vote
1 answer

Unit testing with Moq, Prism 6, and Event Aggregation

I want to unit test a module by throwing messages at it via Event Aggregation to make sure it responds appropriately, either by setting properties appropriately, or by publishing other messages as a result. I am using Prism 6. In my project, the…
1
vote
2 answers

Static variable initialized more than once using Prism and MEF

Context I have an InteractionWindowPresenter class in charge of creating Windows. Some of them may be modal and I want to keep a counter of the number of opened modal windows in order to notify other parts of the application. Therefore I added a…
jnovo
  • 5,659
  • 2
  • 38
  • 56
0
votes
1 answer

Prism6 shared service and dependency property

I use Prism6 + Unity container for desktop application developing. This is a long-read, sorry. So I ask at top: Prism SetProperty() function is not rising property changed event if input value is Unity singleton. And I understand why: because input…
Sergey Alikin
  • 159
  • 10
0
votes
2 answers

How to load module when using events

I'm very newbie in C#\Prism ecosystem. I want to connect modules via events, but if just send event: _eventAggregator.GetEvent().Publish(new LoginSuccessEventArgs(user)); then my event handler is not working. As I understand it…
Sergey Alikin
  • 159
  • 10
0
votes
1 answer

Prism 7.1.0 Using app.config to load modules

I am trying to load views and viewmodels in a module using app.config and Prism 7.1.0.279-pre. I cannot find any post anywhere that seems to get this to work. Does anyone have any examples? I have a basic understanding from MEF when it was early…
0
votes
1 answer

How do I use Prism MVVM with a ContentView in Xamarin Forms?

What is the correct way to handle MVVM with Prism and content views? I'm trying to port this Xamarin application to Prism (this contentview, and this code) and am unsure of the right way to do this. Do I Create a ViewModel and then register them in…
TLDR
  • 1,198
  • 1
  • 12
  • 31
0
votes
1 answer

Prism dynamic module loading on runtime

I have an application with Prism as framework and I use MEF as DI manager. In my application I have a combobox and when selection changed then it will load different modules in Runtime. There is a blog by Brian Lagunas but it's only for Unity -…
keal24
  • 1
  • 2
0
votes
1 answer

Prism Navigation keep MasterPageDetail menu after navigating to other page

I'm using prism and had a MasterDetailPage with some pages that is accessible from that. But, in some of this pages, I can navigate to other pages that is not accessible from the MasterPageDetail Menu, but menu is still accessible with sliding…
0
votes
0 answers

MVVM How do I share a property between 2 views

What i would like to achieve is when user changes a weekrange on View1, id like the dropdown value on View2 to update as well. As it stands, One does not update the other. My setup Bootstrapper.cs Using prism, I've created a singleton type that I…
highboi
  • 673
  • 7
  • 28
0
votes
0 answers

Content Page in Xamarin Forms Prism Module is Initializing Three times

I am using Prism for Xamarin Forms and Implemented Modularity in the applications. I have .Droid Project, Default PCL Project which has App.xaml file and other content pages. And I have 4 PCL projects which are created as Modules by implementing…
Uday
  • 1
  • 2
0
votes
1 answer

Prism Auto ViewModelLocator with Subdirectories in UWP

I don't know if it is a good pratice, but I would like to use subdirectories into the directories "Views" and "ViewModels" I have this code right now namespace Project.Universal.ViewModels.Sales { public class SalesListViewModel:ViewModelBase …
Raul Medeiros
  • 177
  • 2
  • 9