Prism + DryIoC + WinUI #2287
Replies: 9 comments 20 replies
-
WinUI isn't directly supported, it's more indirect via Uno at the moment. You'd want to follow the Uno guidance on creating a WinUI app, and then add Prism.Uno to it. |
Beta Was this translation helpful? Give feedback.
-
Cool. I can't seem to find the same base class though;
does not match with the base class defined in the xaml; ?
|
Beta Was this translation helpful? Give feedback.
-
Perhaps the PrismApplicationBase is missing from the namespace or shall I add a different xmlns? |
Beta Was this translation helpful? Give feedback.
-
I thought this class was the particular one as it is located in Prism.Uno advised in the first comment. https://github.com/PrismLibrary/Prism/blob/master/src/Uno/Prism.Uno/PrismApplicationBase.cs |
Beta Was this translation helpful? Give feedback.
-
As the Uno example advising PrismApplication isnt even harnessed as base class in the Ch9 demo app. https://github.com/unoplatform/Uno.Ch9/blob/master/src/Ch9/Ch9.UWP/App.xaml.cs |
Beta Was this translation helpful? Give feedback.
-
Yes, it was my mistake. I am trying to figure it out, inheriting from PrismApplication results in the WPF classes. CreateShell intends to return System.Windows.Window. How can add the base class to return Microsoft.UI.Xaml.Window? |
Beta Was this translation helpful? Give feedback.
-
Hi, My MainWindow's type is Microsoft.UI.Xaml.Window. CreateShell expects Windows.UI.Xaml.UIElement: protected override UIElement CreateShell() I'm not sure whether this thread is about WinUI3 or WinUI, but my original issue was closed. |
Beta Was this translation helpful? Give feedback.
-
See PR #2393 |
Beta Was this translation helpful? Give feedback.
-
Currently I forged a set of IoC bindings as NInject Modules. Do you think I will be able to inject that entire module in the Prism IoC container - like AddModule() - or it will fusion with DryIoC/Unity only ? If the later is true, can i introduce such modules in any of these vendors' IoC? |
Beta Was this translation helpful? Give feedback.
-
Hello Seniors,
Can you please draw up some pieces of advice how to empower the new WinUI application with the Prism + DryIoC configuration ?
Beta Was this translation helpful? Give feedback.
All reactions