Questions tagged [prism-7]
43 questions
4
votes
1 answer
How to set different lifetime managers in Prism 7 with Unity container
In older versions of Prism I was able to do this from UnityBootstrapper class
protected override void ConfigureContainer()
{
base.ConfigureContainer();
Container.RegisterType(new…

Milos
- 1,353
- 2
- 18
- 37
4
votes
1 answer
Prism 7 - Injecting the IContainer objects into a view model
I recently had the opportunity to create a new prism-based application. I had been using the 6.3 version for quite a while, but saw the prism 7 had moved out of prerelease and wanted to give it a try. I created a new prism application using the…

Rob Goodwin
- 2,676
- 2
- 27
- 47
3
votes
1 answer
Register singletons as collection of Interfaces with Prism 7
I am converting a Prim 6 using MEF for IOC to Prism 7 Unity since MEF is not longer supported. The biggest difference I have to contend with is the presumption in MEF that everything is singleton by default while Unity tends to assume the…

Ernie S
- 13,902
- 4
- 52
- 79
2
votes
1 answer
Working with nested views using Prism with IsNavigationTarget which can return false
I'm trying to find solution for the following problem. I have a WPF app, I used mvvm and prism (most recent version 7) to build it. Here is the draft of the form/dialog I work on:
MainView has region - region1, I inject SubViewA into region1 based…

banchmax
- 93
- 7
2
votes
1 answer
modal dialog in prism 7.2
I'm developing an .net core 3 wpf Prism application and I want to know how is it possible, with the new IDIalogAware interface in Prism 7.2, to have the main window grayed out when the modal dialog shows.
I'm searching for something like the…

user1804307
- 55
- 1
- 5
2
votes
2 answers
Prism 7. Using PrismApplication.CreateShell() with a non Window control
I would like to update from 6.3 to 7.
I seem to have hit a road block.
When using the PrismApplication class in the App.xaml, CreateShell expects a return type of Window instead of the previous BootStrapper which wanted a DependencyObject.
My…

Lance
- 251
- 5
- 13
2
votes
1 answer
Prism : Register region in another window than shell
I'm building a project with Prism and I was wondering if there is a way to have region from another window than the shell registred in the region manager.
The control i try to build has to be in a separate window, and it would be nice to have region…

NyrOne
- 21
- 2
2
votes
1 answer
Prism 7.0 Registering Modules Using a Configuration File
Im trying a hello world program in Prism.Wpf 7.0. Im trying to load a module from app.config file. Which is not working. Im using PrismApplication since UnityBootstrapper is Obsolete in Prism.Wpf 7.0.
My app.config as..

Vinoth Ezhilan M
- 380
- 1
- 3
- 16
1
vote
3 answers
How do I specify constructor parameters in my dependency injection container in Prism?
How do I inject constructor parameters in my dependencies that I configure using Prism?
I overrode RegisterTypes to register my dependencies like this:
public partial class App : PrismApplication
{
protected override void…

Ben Rubin
- 6,909
- 7
- 35
- 82
1
vote
1 answer
Missing documentation for Prism 7 WPF
When I visit https://prismlibrary.com/docs/wpf/ most of the topics in the left hand navigation menu have no content. Is there something wrong with the site or is there somewhere else I should be looking. I am trying desperately to work through…

Brandon Brown
- 11
- 1
1
vote
1 answer
Xamarin Prism7 - IUnityContainer doesn't have the types I registered
I am building my first Xamarin mobile application (android / iOS) with PRISM.
I'm following this very helpful tutorial https://xamgirl.com/prism-in-xamarin-forms-step-by-step-part-1/
Problem is the IUnityContainer that gets injected into my…

Shaboboo
- 1,347
- 1
- 16
- 35
1
vote
2 answers
WPF PRISM 7 Login Window Before Main Window
I am new to WPF/Prism and I am trying to do the following: I need to load a Login View ( windows or user control) before launching my Main Window. And after successful login, remove the Login view and go to the Main Mindow.
I have looked at several…

ArHe
- 11
- 3
1
vote
2 answers
New shell/window in Prism/WPF shows wrong view
Inspired by this answer, I created a general purpose Shell (Prism, WPF) like this:

Robert Hegner
- 9,014
- 7
- 62
- 98
1
vote
0 answers
NavigationService won't navigate after going there via absolute Navigation
I am currently working on a Xamarin.Forms application that is targeting UWP, iOS and android.
After implementing a login dialog I am navigating a logged in user to a SomeContentPage, which I now want to be enclosed into a NavigationPage (and perhaps…

renao
- 11
- 2
1
vote
2 answers
How to bind command in ViewModel to a command in Behavior?
WPF project + Prism 7 + (Pure MVVM pattern)
Simple, I have TextBox which need to be cleared when some button is pressed (without the violation to the MVVM pattern)
…

Hakan Fıstık
- 16,800
- 14
- 110
- 131