Questions tagged [prism-6]

Prism 6 is a fully open source version of the Prism guidance originally produced by Microsoft patterns & practices. The core team members were all part of the p&p team that developed Prism 1 through 5, and the effort has now been turned over to the open source community to keep it alive and thriving to support the .NET community.

Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Windows 10 UWP, and Xamarin Forms. Separate releases are available for each platform and those will be developed on independent timelines. 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, EventAggregator, 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.

Prism 6 is a fully open source version of the Prism guidance originally produced by Microsoft patterns & practices. The core team members were all part of the p&p team that developed Prism 1 through 5, and the effort has now been turned over to the open source community to keep it alive and thriving to support the .NET community.

148 questions
0
votes
0 answers

Prism WPF Navigation in Plug-in app

I am developing a plug-in for a commercial software. It has to be a class library. From this class library, I would like to show a window that supports navigation. First here it is my bootstrapper (using Ninject). class BootStrapper :…
Mostafa abdo
  • 616
  • 1
  • 8
  • 21
0
votes
1 answer

The IRequestNavigationService is not being instantiated

In a program that was working, I started getting the following exception: Activation error occurred while trying to get instance of type IRegionNavigationService The inner exception is InnerException {"The current type,…
Ken
  • 57
  • 1
  • 11
0
votes
1 answer

WPF Combobox Binding broken after Collection repopulation

I have following Situation. I have a ListView set up as following:
ndcHunter
  • 13
  • 4
0
votes
2 answers

How do I obtain a RegionManager object in code-behind for navigation purposes in Prism?

I'd like to create a custom hyperlink control that, when clicked, navigates to a region and parameters specified by bindings to properties in a parent ViewModel. Since I'd like to be able to drop this control into any arbitrary xaml, it cannot have…
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
0
votes
1 answer

How to add a region without knowing the type and without activating it

RequestNavigate(uri) is nice when you want to navigate to region using a string and immediately make it the active view. But what if you want to add a region without activating it? Is there a way to do that with a string? I have a view model that…
Ben Zuill-Smith
  • 3,504
  • 3
  • 25
  • 44
0
votes
2 answers

Setting and Showing the SelectedItem in ComboBox from VM in WPF Prism MVVM

I am trying to set a ComboBox SelectedItem from my VM. I think I am close, but I do not know how to show the SelectedItem in the ComboBox when it is set from the VM. The textbox is has a binding to the SelectedItem Property. When I run it, it will…
Joey Joystick
  • 145
  • 1
  • 11
0
votes
2 answers

Prism event aggregator - ThreadOption.UIThread worked in v4 but not v6

I've been using Prism 4.1 and have numerous classes that subscribe to events (usually in their constructor) using the IEventAggregator and the ThreadOption.UIThread option. I've now upgraded to Prism 6 but when I run my application it falls over on…
Andrew Stephens
  • 9,413
  • 6
  • 76
  • 152
0
votes
1 answer

How to modify the Connection String for EF6 when using Prism and different Modules

Wanted to use SQL with EF6 in my Prism MVVM WPF App. Since I am new to EF6 I first made a simple sample that works just fine. In this sample I use one module and have 3 folders for Views, ViewModels and Models, the latter holding the SQL stuff. So I…
Joey Joystick
  • 145
  • 1
  • 11
0
votes
1 answer

Why modules in Prism project are advised?

I have been trying to learn WPF using the MVVM pattern for the past couple week. While learning, I came across the Prism framework. I must say, I like the Framework so far. However, I am kind of confused of certain things. I am utilizing the…
Junior
  • 11,602
  • 27
  • 106
  • 212
0
votes
1 answer

Is Prism 6.3.0 tied to an older version of Unity (I can't seem to upgrade)

I've got a WPF App using the latest version of Prism for WPF (6.3.0) and Unity. Just a few modules. It works great. When I manage NuGet packages for my solution, it tells me that there is a new version of Unity (5.4.0) available. …
Joe
  • 5,394
  • 3
  • 23
  • 54
0
votes
1 answer

Prism WPF - How to access ServiceLocator inside UserControls or Custom Controls

I have some reusable UserControls, inside those UserControls i want to access some service instances which i registered inside bootstrapper. I cannot do constructor injection because those user controls are used directly inside xaml, so i tried to…
Joe Gage
  • 33
  • 9
0
votes
1 answer

Getting the SelectedItem in a ListBox with itemtemplate that contains only a button

I have been trying to figure out this for two days now. I have a ListBox that is bound to an ObservableCollection. The ListBox is using a template to display a Button for each item in the collection. I want to fire a command and pass the…
0
votes
0 answers

Navigation failed with Prism 6 in child region

Hello everyone I get some problems to use to navigation api of Prism 6 when i want to go in a child region (a region in an another region) by using the requestNavigate. I have a view model ProgramsVM displayed in a region named ProgramContent. This…
Minskaya
  • 1
  • 1
0
votes
1 answer

What is IDataErrorInfo.Error use for?

I'm just getting up to speed on WPF, MVVM and Prism 6. I understand how to use IDataErrorInfo but I don't know why or how you would use IDataErrorInfo.Error. In every example I've seen, it's get method returns null or a not implemented exception. It…
cce1911
  • 363
  • 3
  • 20
0
votes
2 answers

NavigationService.Navigate throwing exception when called in Prism for UWP

I am using Prism for UWP and I've base classed my App from PrismUnityApplication. I've overridden OnLaunchApplicationAsync and I am trying to call, NavigationService.Navigate("HighlightsView", null); When called, the program throws an exception,…
sudarsanyes
  • 3,156
  • 8
  • 42
  • 52