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

C# .NET Plugin Framework

I have been working on a Plugin based application in C#. Stumbled across Managed Extensibility Framework (MEF) but this seems to be obsolete and support is dropped off Prism and other Frameworks. Are there any alternatives to MEF for .NET…
Mandeep Singh
  • 91
  • 1
  • 12
1
vote
1 answer

PRISM - Xamarin Forms - Disable IsGestureEnable on some Detail page of MasterDetailPage

I'm using a Prism library (version 7.2.0.1422) on my Xamarin Forms app. After user Login I use a NavigationService.NavigateTo($"/{nameof(MainMasterDetailPage)}/{nameof(MasterDetailNavigationPage)}/{nameof(HomePage)}") method to set the my…
Giuseppe Laera
  • 272
  • 2
  • 14
1
vote
1 answer

RequestNavigate in MainWindowViewModel ctor

hi i want when application luanched, application navigate to a view automatically so i used like this: protected override Window CreateShell() { return Container.Resolve(); } protected override void…
git test
  • 408
  • 1
  • 5
  • 11
1
vote
1 answer

Prism for Xamarin forms Initialize called after BindingContext is set

I am hoping to expand on the post here https://stackoverflow.com/a/60359084/6558112 I do not completely understand the sequence of events that happens during view and viewmodel initialization when using Prism. Dan explained this well, but I am still…
bmgsmith
  • 48
  • 6
1
vote
1 answer

WPF Modular Initialization after Package Update

Hi hope you guys can help me. I Inherited a Project and needed to Update the Packages and there was a Change in the Initialization. public abstract class ModuleBase : Prism.Modularity.IModule { public IUnityContainer UnityContainer { get;…
GrabnaMax
  • 47
  • 7
1
vote
2 answers

Navigate from one view to another in WPF

I want to navigate from one view to another view in WPF using MVVM. How can I do this? Please let me know the procedure. Thanks, Prashant
user761276
  • 11
  • 1
1
vote
1 answer

Xamarin Forms - Prism detect GoBack

Using Xamarin.Forms v4.5 and Prism v7.2 I have an APP with 3 pages (PageA, PageB and PageC). From PageA, I can navigate to PageB and from PageB to PageC. From PageC, I can tap on the back button and go back to PageB. My question is, when I navigate…
Dimitris
  • 725
  • 1
  • 10
  • 28
1
vote
1 answer

WPF with PRISM: Resource of some types not found when running the app if other resources from other types are not includes

I found an issue with resources in the App.xaml file of a Microsoft PRISM (Prism.Wpf 7.2 and Prism.Unity 7.2) WPF MVVM application (.NET Framework 4.7.2 or Dotnet Core 3.1). If App.xaml includes only certain types (don't now which exactly) like…
Jürgen Bayer
  • 2,993
  • 3
  • 26
  • 51
1
vote
1 answer

Dialog should come to front on button click

I am using Prism 5. To show dialog, I am using InteractionRequest. IsModel Property is set to False, so when I click on the main window (from where Dialogs is raised), Dialogs went in background. Now what I am trying to implement is that when I…
grv_9098
  • 465
  • 5
  • 16
1
vote
1 answer

Prism not navigating to page when await-able method before navigation

I'm using Xamarin.Forms 4.4.0.9916 and Prism.Unity.Forms 7.2.0.1422 In a basic prism application, I would like to perform a task before navigating to the MainPage (for the example I replace the task with await Task.Delay(500);) The problem is that…
Dimitris
  • 725
  • 1
  • 10
  • 28
1
vote
1 answer

bypass tab click in tabbed page

My application is using a tabbed page to separate 2 main areas. Using Xamarin.Forms 4.x and Prism. The first tab basically hosts a set of linear navigated views modelling a workflow. It's been identified that when a user has progressed through the…
bouche
  • 11
  • 2
1
vote
2 answers

WPF custom TabItem disappears upon restyle?

I have a TabControl with a custom TabItem. The view xaml looks like this.
castis
  • 8,154
  • 4
  • 41
  • 63
1
vote
1 answer

Prism 4 RegionManager loses first region when second one is added in WPF

We're using Castle Windsor and Prism 4 (Feb 2010). We're using the Windsor bootstrapper that makes Castle play nice with Prism that was released in the CompositeWPFContrib package. I'm trying to define regions on my main Shell's XAML. If I define…
Scott
  • 513
  • 9
  • 20
1
vote
1 answer

How to place an exported view into a specific location of another exported view?

I am trying to create a toolbar by using two exported views. First view has button A, D, E and second view has button B, C. I want to create toolbar by placing both view into a new view. Problem is how to place second View inside first View after…
Raj
  • 664
  • 7
  • 23
1
vote
1 answer

How does Prism WPF Ioc Resolve MainWindow

protected override Window CreateShell() { return Container.Resolve(); } referring to the above code in Prism/blob/master/Sandbox/Wpf/HelloWorld/HelloWorld/App.xaml.cs, I do not understand how the MainWindow type is…
leon
  • 35
  • 4