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

MVVM - navigating between views

I have a ListBox that is bound to a ViewModel that exposes a parameter of type ObservableCollection. I have setup an ICommand that gets fired when one of the rows in the ListBox is selected. (using method 3 in this post - it works great by the…
Raj Rao
  • 8,872
  • 12
  • 69
  • 83
1
vote
1 answer

Prism and TabControl and TabIndex

I want to put views in the same order into a TabControl every time. Now the order of my tabs is random, bacause of the loading of the modules, I gues. How to setup the TabIndex if I use TabControl as a region with prism?
Onet Two
  • 25
  • 3
1
vote
1 answer

How to integrate Prism 7 WPF into old, large WinForms App

I am attempting to integrate a (Prism 7) WPF Window into an existing WinForms app. My window is defined as:
chuckp
  • 313
  • 1
  • 2
  • 15
1
vote
2 answers

How do i perform navigation from my App class while in a viewmodel with Prism

I'm currently developing a app in which we have a feature called "tips" which are essentially microblogs. In these blogs which are html based you can link to other "Content" that exists on our app through ordinary hyperlinks. The app is set up to…
scottyaim
  • 71
  • 1
  • 7
1
vote
1 answer

Prism 7.1 and Unity Interceptors

I have a very big problem with Prism 7.1.0.431. I want to register type in unity container with interceptors like this container.RegisterType(new Interceptor(), new InterceptionBehavior()); but its…
1
vote
3 answers

PRISM: Are PRISM Modules intended to have only one view per region?

I'm really confused about what is supposed to be inside a Module. When I call RegisterViewWithRegion for many views they are all loaded together during Module initialization... All those views are intended to be hosted inside the same region because…
jpmir
  • 101
  • 1
  • 8
1
vote
0 answers

WPF | Prism | Advance style don't apply to TabControl set as Region

Description: Advance styles (like MahApps.Metro) don't apply to TabControl if it is set as region in shell. Basic styling is applied. I tried putting Two TabControls in shell window, One marked as Region and the other as plain. Style did apply to…
1
vote
1 answer

Windows Template Studio Prism Navigation

I'm using Windows Template Studio (Prism) to create a test project, but from the documentation, I'm unable to figure out navigation. I now know how to do it with MVVM Light, but had to ask, because documentation doesn't detail it. How do I navigate…
Carlo Mendoza
  • 765
  • 6
  • 24
1
vote
1 answer

Creating Dynamic TabbedPage using Prism Xamarin forms

I am using Prism with item source, Inside each tabbed page there is a Listview for which i am unable utilize "ItemTapped" event as an event to command Behaviour to trigger a command in viewmodel when an listview item is tapped, but there is no…
Devanathan
  • 39
  • 5
1
vote
1 answer

Use Prism EventAggregator like the old CAB Event system with string event names

I see Prism`s eventaggregator always and only used with GetEvent which is very odd. I am used to the old CAB event system - now using Mediator implementation from Marlon Grech - where I have defined string constants that way I do not have to create…
msfanboy
  • 5,273
  • 13
  • 69
  • 120
1
vote
1 answer

How do I navigate from a tab page to another tab page?

What is the best way to navigate from a tab page 1 to another tab page 2? The scenario is that I when I press a button in a tab page, it should navigate to another tab page. I can't set the main tab page's selected tab property because I'm in the…
iamlawrencev
  • 148
  • 2
  • 11
1
vote
1 answer

Silverlight 4 how to detect the screen size and bind to a grid

I can't get my application to resize the screen correctly. here is my xaml
pqsk
  • 2,124
  • 3
  • 23
  • 28
1
vote
2 answers

White Screen Issue while navigating in Xamarin forms Prism MasterDetails Page

I have implemented MasterDetail Page using xamarin forms prism and I have following Pages in my app. 1) Master 2) Home 3) Employee 4) Profile -- Initially App is set to Master - Home (Detail Page) page after login. From Home page i navigate to…
1
vote
1 answer

In MVVM, open context menu upon drag completion

In a software that is highly interactive, the user can do drag and drop operations on a collection of UserControls. Upon drop, they should be presented with a ContextMenu offering some choices on how to perform the action, e.g., copy the item, or…
Informagic
  • 1,132
  • 1
  • 11
  • 23
1
vote
2 answers

How do I get Prism to report the exceptions it traps?

I have a Prism WPF application which failed to load one of its modules when I deployed it (due to a database problem). On my development machine, I can see the relevant exceptions being thrown (and apparently caught and handled by Prism) in the…
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
1 2 3
99
100