3

I'd like to use Prism in a WinUI 3 app, and I saw the Prism v8.1 release.

Additionally Prism 8.1 offers a new Prism.Uno.WInUI platform target for those wishing to build either native WinUI3, or Cross Platform WinUI 3 apps with Uno Platform.

I'm confused about Uno. I'm not using Uno, can I still use Prism in a WinUI 3 app without using Uno?

If yes, which packages do I need to install and in which projects? (I'd like to use DryIoc)

I guess Prism.DryIoc.Uno.WinUI must be added to the WinUI 3 app project.

But what about the other packages for using Prism?

JamesL
  • 351
  • 2
  • 10

2 Answers2

1

There is a question about an error while using Prism.Uno with WinUI 3: How to use Prism MVVM in WinUI 3 Desktop

In the comments section, there is a link to a GitHub discussion that is held in Prism GitHub repository. Here is the link: https://github.com/PrismLibrary/Prism/issues/2632

In this discussion, on Dec 7, 2021, it is stated that there is not any support for WinUI 3 other than Prism.Uno.

0

If you specifically want to use 'Dryloc', you could try to use one of these Nuget packages:

  • Prism.Container.Extensions
  • Prism.DryIoc.Extensions

They should both be of general use and not target a specific UI technology.

If you install 'Prism.DryIoc.Extensions' using the Nuget-Package manager, dependent packages should be installed automatically.

See Github - Prism.Container.Extensions


Note there is also a package 'Prism.Core' that does not target a specific UI framework either. If contains features like an event aggregator.

Martin
  • 5,165
  • 1
  • 37
  • 50