You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
Prism.Forms has always had a Static NavigationRegistry. This Registry has been there in part to help with mapping Views <---> ViewModels. This also has been a source of pain in Unit Testing as the NavigationRegistry may have the wrong static context if it was not cleared from one test to the next. While Prism.Maui has made a number of improvements around the NavigationRegistry the static nature still remains and is duplicated for Regions. These static APIs should be removed in preference for using the DI Container.
Registration
When Registering a View for Navigation a ViewRegistration instance should be registered along with the View Type & ViewModel Type if specified. The ViewRegistration already exists in Prism.Maui.
Changes
A new ViewType should be added to the ViewRegistration so that we can better filter
publicenumViewType{Page,Dialog,Region,}
We can then define a common IViewRegistry & ViewRegistryBase which can be reused for Page Navigation, Regions, & Dialogs.
Description
Prism.Forms has always had a Static NavigationRegistry. This Registry has been there in part to help with mapping Views <---> ViewModels. This also has been a source of pain in Unit Testing as the NavigationRegistry may have the wrong static context if it was not cleared from one test to the next. While Prism.Maui has made a number of improvements around the NavigationRegistry the static nature still remains and is duplicated for Regions. These static APIs should be removed in preference for using the DI Container.
Registration
When Registering a View for Navigation a ViewRegistration instance should be registered along with the View Type & ViewModel Type if specified. The ViewRegistration already exists in Prism.Maui.
Changes
A new ViewType should be added to the ViewRegistration so that we can better filter
We can then define a common IViewRegistry & ViewRegistryBase which can be reused for Page Navigation, Regions, & Dialogs.
The text was updated successfully, but these errors were encountered: