Skip to content

Commit

Permalink
Update RegionNavigationRegistrationExtensions.cs
Browse files Browse the repository at this point in the history
Allow for registering a view for navigation using type. This method already exists but is currently private.
  • Loading branch information
jpislas authored May 20, 2024
1 parent c333750 commit eb47257
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb47257

Please sign in to comment.