From eb47257372f92bdae5562f88043c31626fa75d7d Mon Sep 17 00:00:00 2001 From: jpislas Date: Mon, 20 May 2024 14:41:09 -0500 Subject: [PATCH] Update RegionNavigationRegistrationExtensions.cs Allow for registering a view for navigation using type. This method already exists but is currently private. --- .../Prism.Maui/Ioc/RegionNavigationRegistrationExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Maui/Prism.Maui/Ioc/RegionNavigationRegistrationExtensions.cs b/src/Maui/Prism.Maui/Ioc/RegionNavigationRegistrationExtensions.cs index 7c412c0547..2b1694068d 100644 --- a/src/Maui/Prism.Maui/Ioc/RegionNavigationRegistrationExtensions.cs +++ b/src/Maui/Prism.Maui/Ioc/RegionNavigationRegistrationExtensions.cs @@ -35,7 +35,7 @@ public static class RegionNavigationRegistrationExtensions where TViewModel : class => containerRegistry.RegisterForNavigationWithViewModel(typeof(TView), typeof(TViewModel), name); - private static IContainerRegistry RegisterForNavigationWithViewModel(this IContainerRegistry containerRegistry, Type viewType, Type viewModelType, string name) + public static IContainerRegistry RegisterForNavigationWithViewModel(this IContainerRegistry containerRegistry, Type viewType, Type viewModelType, string name) { if (string.IsNullOrWhiteSpace(name)) name = viewType.Name;