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

PRISM Xamarin.Forms INavigationService understanding

I am struggling to understand how the PRISM INavigationService maps to the standard Navigation.PushAsync provided by Xamarin Forms. I have an application that I have started using XF. It consists of a MasterDetailPage that is the home page and the…
Martin Robins
  • 6,033
  • 10
  • 58
  • 95
0
votes
2 answers

Xamarin Forms DependencyService with Prism with Autofac crash - Unhandled Exception

So to continue on with my first foray into Xamarin, I'm trying to develop an Content page that will take a photo, and then save the photo on the device gallery for viewing. I'm using Prism with Autofac and I'm following the wiki documentation on…
Steve Brother
  • 838
  • 2
  • 11
  • 21
0
votes
1 answer

Is it possible to disable data binding for a control until it has the correct DataContext?

I have a selection view with a list of DetailViewModel objects. When one of these is selected, it is passed to a detail view (derived from UserControl) using Prism view switching navigation. Because the detail view is loaded when the module is…
ProfK
  • 49,207
  • 121
  • 399
  • 775
0
votes
1 answer

Why are ModuleAttribute and ModuleDependencyAttribute not working in my WPF Prism app?

I have two modules: [Module(ModuleName = ModuleNames.Common)] public class CommonModule: BaseModule and [ModuleDependency(ModuleNames.Common)] [Module(ModuleName = ModuleNames.Branch, OnDemand = true)] public class BranchModule : BaseModule Then…
ProfK
  • 49,207
  • 121
  • 399
  • 775
0
votes
1 answer

How is this viewModel being created?

I have a simple application here but I am unsure of how my ViewModel is being created. I am assuming it's from the unity container but I am unsure and curious. The module initializes and registers the view with the region. The view's code behind has…
Dru Steeby
  • 166
  • 2
  • 12
0
votes
1 answer

MEF, Prism and new view instance on navigation

The code below worked on shared instance of the view. Now what I'm trying to achieve is each time I navigate to ViewB I want a new instance of the view and its backing view model. I have tried various combinations of the below but they all seem…
Jon Wells
  • 4,191
  • 9
  • 40
  • 69
0
votes
0 answers

ConfigureViewModelLocator to bind views in different assemblys

Okay, so I'm not all too good with this kind of thing. I currently have the following for configuring my view model locator in the bootstrapper. ViewModelLocationProvider.SetDefaultViewTypeToViewModelTypeResolver(viewType => …
user3265613
  • 355
  • 2
  • 14
0
votes
1 answer

Xamarin.Forms Prism master view not showing hamburger icon when popover visible

I have set up my Xamarin.Forms Prism application to use a Master-Detail Page (with MasterBehavior set to Popover) for its navigation, but I am noticing a few differences between my Prism app and the sample Xamarin.Forms app using this page…
jkh
  • 3,618
  • 8
  • 38
  • 66
0
votes
3 answers

Property changed event is not getting fired wpf

I have to change the value in a text box dynamically, on selecting a value from a combox box, which is present in different view. when changing the dependency property's source, the propertychangedEventHandler value is not changing, i.e it is…
0
votes
1 answer

Why do I get a build error in a WPF UserControl and its owner Window only at design time?

I have a MainMenu user control that I use in my MainWindow view, which has a MainWindowViewModel. MainMenu markup begins like:
ProfK
  • 49,207
  • 121
  • 399
  • 775
0
votes
1 answer

When is the best time to load lookup tables using prism/unity?

I am looking for some advice on a good design for loading lookup tables such as state codes using Prism Unity? My view libraries are domain focused and I have modules that pass in an IUnityContainer. In the initialize section I register with the…
Gr8Sarge
  • 43
  • 4
0
votes
1 answer

What is the best way to create shared serial port access in Prism 6 multimodule WPF MVVM application?

For a long time I've periodically searched information about creating shared access to serial port in multimodule Prism MVVM application but there are not any good papers. Therefore I address to you here. I develop C# WPF MVVM Prism 6 application…
Prohor
  • 141
  • 1
  • 3
  • 12
0
votes
1 answer

Prism release mode causing an error

Redoing this question (sorry to anyone who was in the middle of reading it) Attempting to play with Prism 6, but I'm getting an issue on all of my shellview components, when I'm working in debug mode everything is fine, however the moment I switch…
user3265613
  • 355
  • 2
  • 14
0
votes
2 answers

How to pass INavigationService from parent ContentPage ViewModel to child ContentView ViewModel?

I am using Xamarin Forms and Prism. My navigation between pages is done using Prism INavigationService. I have a Xamarin Forms ContentPage with many child ContentViews which have their own View Models. When I click a child ContentView I would like…
Bhanu Vanka
  • 31
  • 1
  • 3
0
votes
2 answers

WPF Prism basic mvvm quickstart project error 'out of the box'

I downloaded prism5.exe from Microsoft and expanded it which left a variety of quick start projects. I simply opened the 'stock' BasicMVVMQuickstart_Desktop solution. At first I received a 'couldn't find name in the namespace error' (on the same…
Alan
  • 1,587
  • 3
  • 23
  • 43