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

[Enhancement] RegionAdapterMapping.RegisterMapping Generic method #2026

Closed
brianlagunas opened this issue Mar 3, 2020 · 1 comment
Closed

Comments

@brianlagunas
Copy link
Member

Summary

Let's add a generic method to the RegionAdapterMapping.RegisterMapping method to simplify the registration of custom region adapters.

API Changes

currently we have to write this:
regionAdapterMappings.RegisterMapping(typeof(StackPanel), Container.Resolve<StackPanelRegionAdapter>());

But I want this:
regionAdapterMappings.RegisterMapping<StackPanel, StackPanelRegionAdapter>();

@lock
Copy link

lock bot commented Mar 21, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant