Caliburn.Micro icon indicating copy to clipboard operation
Caliburn.Micro copied to clipboard

WinUI 3 support

Open C1rdec opened this issue 3 years ago • 8 comments

Any chance that WinUI 3 would be supported?

C1rdec avatar Aug 14 '21 04:08 C1rdec

A System.NullReferenceException exception is thrown in PrepareApplication since the Application is a Microsoft.UI.Xaml WinUI 3 seems to be a mix of WPF and UWP but only WPF dlls are loaded with the nuget. The CaliburnApplication and the respective container are not available.

image

Here is a simple repo => https://github.com/C1rdec/CardCaster

C1rdec avatar Aug 14 '21 04:08 C1rdec

I am working on this.

vb2ae avatar Aug 14 '21 18:08 vb2ae

Can I help somehow?

C1rdec avatar Aug 23 '21 17:08 C1rdec

Problem is that BootstrapperBase passes useApplication = true by default. Then in PrepareApplication() is tries to hook into Application Events Startup DispatcherUnhandledException Exit

but these events do not exist in Microsoft.UI.Xaml.Application

Passing false into the BootstrapperBase construct gets the Caliburn going further!

NormskiJJO avatar Oct 21 '21 08:10 NormskiJJO

Hi All,

Can somebody update me please, what happens with WinUI 3 support? I have a real project, which must to be developed as WinUI app. Can I use CM (somehow)? Where can I find dev. sources (e.g., fork, branch, something else), documentation, recipes?

Thank you in advance!

glyad avatar Aug 14 '22 09:08 glyad

@vb2ae where are you at? Do you have a current branch that we can look into?

More than happy to help

C1rdec avatar Sep 12 '22 02:09 C1rdec

@vb2ae - Do you have any guess on when you plan to release version 5.0?

TieDyeGeek avatar Mar 08 '23 22:03 TieDyeGeek