Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align registration return type #3267

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

dansiegel
Copy link
Member

Description of Change

While in Xamarin.Forms and .NET MAUI we have always returned the IContainerRegistry from the Dialog and Navigation registration extensions, WPF / Uno extensions have not. This PR aligns the behavior between the platforms so that the IContainerProvider is returned allowing you to chain your registration like:

containerRegistry.RegisterForNavigation<ViewA, ViewAViewModel>()
                 .RegisterForNavigation<ViewB, ViewBViewModel>();

@dansiegel dansiegel merged commit 0ea820c into master Oct 22, 2024
5 checks passed
@dansiegel dansiegel deleted the dev/ds/registration-extensions branch October 22, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants