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
2
votes
0 answers

xamarin prism forms property changed not firing

I have a problem with prism.forms and propertychanged. I have settingsmodel,settingsviewmodel and settingspage that shown code below, SettingsModel public class SettingsModel: BindableBase { public string Url { get; set; } public bool…
muhammetsahin
  • 181
  • 4
  • 14
2
votes
1 answer

Use asynchonous tasks with INavigationAware with Prism

How to call an async method into a method that implements an interface when this method is NOT async? In my ViewModel, I've got an async method that should be executed each time the user navigates into the view. The fastest (bad) solution I was…
JiBéDoublevé
  • 4,124
  • 4
  • 36
  • 57
2
votes
1 answer

Prism 6 UriQuery class missing?

Does anyone know what happened to the UriQuery class in Prism 6? just following a tutorial and it says it was under Microsoft.Practices.Prism but as the namespaces have all changed I can't find it.
Gaz83
  • 2,293
  • 4
  • 32
  • 57
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
vote
1 answer

Could not load file or assembly 'Microsoft.Practices.Unity, Version=4.0.0.0 OR Is Unity 5.8.11 supported for Prism 7.0.0.396 with WPF?

I have inherited a WPF project that uses Prism and Unity that was originally written in .Net 4.5. I am upgrading the project to .net 4.7.1 and I am upgrading all the Unity and Prism packages to the latest revisions: Unity 5.8.11 Prism.Core…
Dinsdale
  • 581
  • 7
  • 12
1
vote
1 answer

How to instantiate all the views in Prism

Bellow you can see my bootstrapper. I want to register all the views from the bootstrapper. When I start the application, WebView and EditView are created. GeneralView is a part of EditView and I have to navigate first to EditView in order to…
w3u37905
  • 37
  • 5
1
vote
0 answers

Is it possible to do MVC model binding outside of ASP.NET core... but in Xamarin?

I am using Xamarin Prism, which allows for URL-style parameters to be used for navigation. Rather than parsing the string and manually updating my models, I'd like to reuse (anything) that might already exist. Is it possible to do MVC style model…
TLDR
  • 1,198
  • 1
  • 12
  • 31
1
vote
1 answer

Prism 6.3 Wpf : Setting regionMangers active view fails because of missing view name when registering the view

I want to set the Active View of a Region but im not able to recive the correct name of the View from RegionManger I register the Views in a Module like…
jeb
  • 848
  • 5
  • 16
1
vote
0 answers

DelegateCommand in separate class first call of CanExecute parameter is null

I have the following problem. I have moved the DelegateCommand from the ViewModel to a separate class. And observe a property in the ViewModel. That works so far. Then CanExecute will call the first one with NULL when the view is initialized. Which…
ascholz
  • 179
  • 1
  • 9
1
vote
1 answer

Making Tab Items and Prism navigation play nice with each other

The application that I am currently writing uses a Tab Control as its primary menu structure. Tabs allow caching of views; the tab retains the loaded view when another tab is selected. Each tab contains a Region placeholder:
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
1
vote
1 answer

How to correctly send event-messages between modules in Prism framework?

I am trying to build a WPF Prism bases app using MVVM design pattern. When my app first starts, I want to require the user to login. Once logged in, I want to show the default landing page with the user name and buttons. My thought, when a user…
Junior
  • 11,602
  • 27
  • 106
  • 212
1
vote
1 answer

ViewModel constructor with IEventAgrrregator as argument

In my application, I was generally using the ViewModel constructor without any parameter and locating my ViewModel from xaml like below.
1
vote
1 answer

Open module in new window

I try to open a module resolved by a special directory return new DirectoryModuleCatalog() { ModulePath = @"..\..\modules" }; and want to show it in a new Window. How can I do that? My approach so far: public void OpenInNewWindow(string…
senz
  • 879
  • 10
  • 25
1
vote
1 answer

Sandcastle Help File Builder and Tools - error : Unresolved assembly reference: mscorlib with UWP Prism Project

In VS 2017 I have installed Toolkit Template Pack Create Project with Template with "Prism Toolkit Hamburger Menu App " Add Missing Nuget Packages ( Prism.Windows & Prism.Unity) Compile and Run the Project. - It work fine Create Sandcastle Help…
Sawarkar vikas
  • 315
  • 1
  • 5
  • 9
1
vote
0 answers

How can I get corresponding ViewModel updated when navigating views defined in loosely coupled modules in Prism?

I have an application that defines two modules, let's ModuleA and ModuleB for simplicity. Each one has it's own ViewModel, (for instance, ViewModelA, ViewModelB). When the first module (ModuleA) is loaded, ViewModelA is instantiated displaying data…
Gonza Romero
  • 81
  • 2
  • 6
1 2
3
9 10