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

Bind KeyBinding Command to WPF DatePicker (MVVM)

I've been searching high and low for a way to bind the Return key to a DatePicker control in a MVVM way, but to no avail. My current XAML Markup:
BgrWorker
  • 619
  • 5
  • 20
1
vote
0 answers

Xamarin forms MasterDetailPage navigation use case

Here is my scenario: My app starts with opening a MasterDetailPage. The Master is a StackLayout of Button that just open a specific DetailPage. You can see this as some kind of video library with a Menu... I want the hamburger menu to be available…
TaiT's
  • 3,138
  • 3
  • 15
  • 26
1
vote
2 answers

How to update content of dialoghost in wpf material design?

This error happen when I open new usercontrol into dialoghost during opening dialoghost : when I press submit button this is my code xaml: MainWindow:
1
vote
0 answers

How i can send data between two windows for login using MVVM and autofac?

I'm writing my first "real" MVVM application, and the first step the user will need to take is to provide login credentials.So I have the MainWindow holds a login page in the frame. I want when the user enters the username and password a new window…
Mahmoud Samy
  • 439
  • 4
  • 20
1
vote
0 answers

OneWayToSource in Silverlight and UpdateSource issue

I'm facing some problems binding a CommandParameter to its own Command in an application built using Prism 2.2 as MVVM . Let me introduce what it's happening. I've got a customized listbox with a property named NumPageElements, and a couple of…
Mattia Vitturi
  • 235
  • 4
  • 17
1
vote
0 answers

Xamarin.Forms cross platform architecture

I want to create a new cross-platform Xamarin.Forms app. But I am a bit confused about which architecture/framework to use. There are different MVVM framework i.e MvvmCross, Prism, FreshMVVM, ReactiveUI. So which is best to use, and what are their…
1
vote
2 answers

Is there a disposing TransientLifetimeManager

I have a WPF view that has a corresponding ViewModel. All instances are resolved via an unity container. Because I'm using prism I need two independent instances of the view to add it into two different regions the view is registered to. If I'd try…
PVitt
  • 11,500
  • 5
  • 51
  • 85
1
vote
2 answers

Can a user control style its parent window?

I have a user control that is displayed in a popup dialog using Prism's PopupWindowAction. I don't want the window to be resizeable. Is it possible to style this window from the user control? I attempted to use this:
Jesse
  • 915
  • 1
  • 11
  • 20
1
vote
1 answer

Xamarin Prism BindingContext to ViewModel for Intellisense data suggest

I came from WPF where specifying the DataContext (BindingCntext for Xamarin) the intellisense show me my properties and methods. Is possible do this with Prism in Xamarin?
Alessandro Albi
  • 121
  • 1
  • 3
  • 13
1
vote
2 answers

What is the best way to handle this two async methods that one dependent on the other?

I'm using Prism Library the latest version. My list page view model - ActivityListPageViewModel.cs has something like this below which basically it's a list and when it clicked/selected then will navigate to the detail page. public ActivityModel…
dcpartners
  • 5,176
  • 13
  • 50
  • 73
1
vote
1 answer

How to create one common view in WPF and that should be referred in all modules?

I am developing an application in WPF using the PRISM framework in the modularity concept. So I have different modules each module have one DataGrid view. I need to have one common module that is a common view. That common view contains one Data…
Arulraj J
  • 11
  • 3
1
vote
2 answers

Extensible Excel VSTO Add-in using Prism / CAG / Unity debugging

I'm developing an Excel VSTO Document Level Add-In using Composite Application Guidance (Prism for Visual Studio 2008/.NET 3.5). One of the requirements is that this add-in should be extensible, that is it should allow loading plugin dlls during…
surfen
  • 4,644
  • 3
  • 34
  • 46
1
vote
1 answer

How to show control's visibility with binding fast

This is my ViewModel with bool and string property: ViewModel : ValidatableBindableBase { private bool _isBusy; public bool IsBusy { get { return _isBusy; } set { SetProperty(ref _isBusy, value); } } private string…
Reaper
  • 61
  • 1
  • 1
  • 8
1
vote
0 answers

Unity.ResolutionFailedException No public constructor is available

I created a Xamarin forms application both Android and iOS platforms and were now planning to have a deployment to google play store and App Store. I need now to enable the Linker SDK and User Assemblies to strip all unused classes and to make the…
parpar
  • 103
  • 1
  • 17
1
vote
1 answer

Dyamic Loading shell module from xaml in wpf

Is my Catalog.xaml file correct to load (ShellProject or Module1) project in prism
md imran
  • 13
  • 4