Description
App crashes if a BottomSheet is opened with exception "Keyed services not supported". I'm using the Prism.DryIoc container.
It works with Microsofts container.
Steps to Reproduce
MauiApp1.zip
-
Run the App and click on button "Open bottom sheet"
-
Application crashes
-
Remove UsePrism from MauiProgram
-
Add builder.Services.AddBottomSheet<PageA>("PageA"); in MauiProgram
-
Add in App.xaml.cs
protected override Window CreateWindow(IActivationState? activationState)
{
return new Window(new NavigationPage(new MainPage(Handler.GetService<IBottomSheetNavigationService>())));
}
- Run the app and click the button
Platform with bug
.NET MAUI
Affected platforms
Android, I was not able test on other platforms
Did you find any workaround?
No response
Relevant log output
Description
App crashes if a BottomSheet is opened with exception "Keyed services not supported". I'm using the Prism.DryIoc container.
It works with Microsofts container.
Steps to Reproduce
MauiApp1.zip
Run the App and click on button "Open bottom sheet"
Application crashes
Remove
UsePrismfrom MauiProgramAdd
builder.Services.AddBottomSheet<PageA>("PageA");in MauiProgramAdd in App.xaml.cs
Platform with bug
.NET MAUI
Affected platforms
Android, I was not able test on other platforms
Did you find any workaround?
No response
Relevant log output