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

Binding a bool to button visibility

I have followed both examples in this question however I am unable to bind a boolean in my view model to a button in my view. I am using a different button that toggles whether or not the other button should be visible or not, can anyone see what is…
je42
  • 51
  • 1
  • 8
1
vote
1 answer

No property, bindable property, or event found for 'Tapped'

I am getting compile error with Image's Tapped Binding using Prism MVVM. No property, bindable property, or event found for 'Tapped', or mismatching type between value and property. This is my code
R15
  • 13,982
  • 14
  • 97
  • 173
1
vote
3 answers

OnNavigatingTo not firing in XF Prism 7

I have been through multiple articles on navigation and passing parameters with prism. However, nothing I try will make the OnNavigatingTo method fire when changing pages. My goal is to pass a simple parameter from the LoginPage to the…
TheNameHobbs
  • 679
  • 7
  • 21
  • 36
1
vote
3 answers

Prism - what if multiple modules register the same service

I am currently playing around with and reading up on Prism. I know that the suggested way is to have some common "services" that are defined as interfaces in the Infrastructure assembly that all modules can reference. Different modules can implement…
Chaitanya
  • 5,203
  • 8
  • 36
  • 61
1
vote
1 answer

Prism DAL when / where to access

General question, when do people access their DAL in a prism application? That is to say, if a module requires data do you query the DAL on the module load (I've currently been using OnImportsSatisfiedandINavigationAware.OnNavigatedTo` (passing in a…
obaylis
  • 2,904
  • 4
  • 39
  • 66
1
vote
1 answer

Prism Library Dryioc CreateScope - Cannot access a disposed object

I have an Xamarin Forms app with prism Dryioc 7.1, and I had landed on the following problem: A second operation started on this context before a previous operation completed. So i followed this post…
silvajnr
  • 31
  • 1
  • 4
1
vote
0 answers

Silverlight 4 - Dynamically Loading XAP with App.xaml as page changes the (App)Application.Current.. why?

I have decided not to use the MEF/Prism approach to loading XAP files into a master Silverlight container application i am building. I have 1 Master Silverlight application, and 2 x Applications that are going to be loaded in. My loading code is…
Robbie Tapping
  • 2,516
  • 1
  • 17
  • 18
1
vote
3 answers

How to load an image from XAML for a composite application?

I've seen how to load an image in Silverlight and how to load an image in WPF, but I can't figure out how to load an image using the same XAML for the Silverlight and WPF flavors of a composite Prism app. Ideally I'd like to do something…
Mike Post
  • 6,355
  • 3
  • 38
  • 48
1
vote
1 answer

Prism Inheriting from ViewModelBase vs BindableBase

When I create a new Xamarin.Forms application using the Prism template pack the project gets created with a MainPageViewModel that inherits from ViewModelBase Later I create and an additional View and ViewModel say for ChatPage. This…
Jeff Albrecht
  • 3,723
  • 1
  • 17
  • 22
1
vote
0 answers

Is the Prism Template Studio available for Visual Studio for Mac 8.0?

I started using the Prism Template Studio with Visual Studio for Mac version 7.x a few days ago. Today Visual Studio updated and I no longer have access to the handy Prism extensions. I've tried opening the Extensions Manager and going to the…
Jay
  • 51
  • 4
1
vote
0 answers

RegionAdapter for Fluent.Ribbon

I would like to use prism toghter with Fluent.Ribbon. One of my two RegionAdapters works as expected, the other one fails. protected override void RegisterTypes(IContainerRegistry containerRegistry) { …
1
vote
1 answer

Prism, Unity - Converting from MEF

I recently converted from MEF to Unity - for various reasons. I previously had a IMenuService object in a module that I exported with MEF and imported in other modules. I believe what I have to do with Unity is take the unity container in as a…
Chris Klepeis
  • 9,783
  • 16
  • 83
  • 149
1
vote
1 answer

Prism - Unity equivalent of MEF functionality?

I have a solution structured like so: Models assembly Data assembly - defines repository interfaces and a base repository class ORM assembly - implements repository interfaces & inherits base repository class ^ Business assembly - has a…
Chris Klepeis
  • 9,783
  • 16
  • 83
  • 149
1
vote
1 answer

Handling "Popup" Window.xaml in PRISM

I'm developing a WPF application with MVVM and PRISM 7. At some places I'd like to open a new Window.xaml with the click of a button. So I've created that Window.xaml and am calling it like so when clicking that button/command: private void…
FredM
  • 454
  • 9
  • 20
1
vote
3 answers

Xamarin Forms:Prism:Android:MainActivity: Click on Push Notifications: PushAsync not supported globally on Android, please use a NavigationPage

I am trying to implement a basic push notification example using Xamarin Forms with Prism MVVM, Azure & FCM. I am receiving notification, but couldn't navigate to a specific page when clicked on the notification. Trying basic functionality when the…
1 2 3
99
100