First of all, thank you for migrating CarouselView to MAUI!
We faced with a crash, when using regular navigation in the .NET MAUI App project, e.g:
MainPage = new NavigationPage(new MainPage()); (imagine MainPage contains CarouselView)
Java.Lang.NullPointerException crash happens in CarouselViewRenderer.SetNativeView on Android.
It happens because context is StackNavigationManager_StackContext which derives from AndroidX.AppCompat.View.ContextThemeWrapper but CarouselViewRenderer.FindActivity method expects Android.Views.ContextThemeWrapper. So, FindActivity returns null and NullPointerException occurs in CarouselViewRenderer.SetNativeView method.

You can reproduce this issue on the sample project attached.
NullPointerCrashDemo.zip
A FIX is to use Android.Content.ContextWrapper class which contains BaseContext we are looking for and is base class for both AndroidX.AppCompat.View.ContextThemeWrapper and Android.Views.ContextThemeWrapper.
I will create a fork with fix to speed up fix of this issue.
Will appreciate if you can handle it as soon as possible.
Regards,
Vitalii
First of all, thank you for migrating CarouselView to MAUI!
We faced with a crash, when using regular navigation in the .NET MAUI App project, e.g:
MainPage = new NavigationPage(new MainPage());(imagine MainPage contains CarouselView)Java.Lang.NullPointerExceptioncrash happens inCarouselViewRenderer.SetNativeViewon Android.It happens because context is

StackNavigationManager_StackContextwhich derives fromAndroidX.AppCompat.View.ContextThemeWrapperbutCarouselViewRenderer.FindActivitymethod expectsAndroid.Views.ContextThemeWrapper. So,FindActivityreturns null andNullPointerExceptionoccurs inCarouselViewRenderer.SetNativeViewmethod.You can reproduce this issue on the sample project attached.
NullPointerCrashDemo.zip
A FIX is to use
Android.Content.ContextWrapperclass which containsBaseContextwe are looking for and is base class for bothAndroidX.AppCompat.View.ContextThemeWrapperandAndroid.Views.ContextThemeWrapper.I will create a fork with fix to speed up fix of this issue.
Will appreciate if you can handle it as soon as possible.
Regards,
Vitalii