Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF (and future MAUI): framework support #38

Open
vvdb-architecture opened this issue Oct 7, 2022 · 1 comment
Open

WPF (and future MAUI): framework support #38

vvdb-architecture opened this issue Oct 7, 2022 · 1 comment

Comments

@vvdb-architecture
Copy link
Contributor

This is more a discussion topic than a real issue.

Today, we are using PRISM for UWP/WPF/Xamarin Forms.
There is a PRISM for MAUI but it's not usable in WPF.

We should evaluate and investigate which class library (if any) we will use for WPF/MAUI applications moving forward.

PRISM is a very complex library, implementing the stuff we want and a lot of other stuff we don't use. It is also based on a dependency injection principle which in its current form doesn't play well with Microsoft's DI for two reasons:

  • the DI container abstraction cannot be immutable
  • the DI container requires the registration and resolution by name.

The author of PRISM is very opinionated and see this as non-negotiables (see PrismLibrary/Prism#1352), even though immutability is only user for modules (see PrismLibrary/Prism#1579).

For this reason only, Arc4u needs composition container of MEF2, which brings another set of unnecessary features. There is a way to use PRISM in .NET Core (5.0+) without any MEF, see the POC and related assemblies, but it remains an uneasy marriage of convenience.

We should investigate if we can't use a smaller, leaner framework supporting MVVM, and which is platform agnostic.
For example, the MVVM Toolkit

@GFlisch
Copy link
Owner

GFlisch commented Oct 7, 2022

Personally, I am also in favor of MVVM Toolkit. The community is doing a great job.

The persons behind Prism have also admitted this and the toolkit is answering all the needs we have to build a UI. It is also less dangerous regarding the dependency. Prism is built by 2 persons (having some concerns about the fact that they don't win money based on their product).

Toolkit integrates messaging and support also Wpf. I don't invest time for the moment to switch from Prism to Toolkit in Wpf. I want and see more stability on MAUI before taking any decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants