-
-
Save JoeM-RP/e824fc66214637ef8a5c70cceca3e4d9 to your computer and use it in GitHub Desktop.
Demonstrates updates needed for Prism 7 RegisterTypes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Registers the types. Notice that we can set the name explicity by providing the | |
/// name parameter, or just use the nameof property for the page | |
/// </summary> | |
protected override void RegisterTypes(IContainerRegistry containerRegistry) | |
{ | |
// Register Navigation page | |
containerRegistry.RegisterForNavigation<Views.AppShellNavigationPage>("Navigation"); | |
// Register Views | |
containerRegistry.RegisterForNavigation<Views.AppShell>("Root"); | |
containerRegistry.RegisterForNavigation<Views.HomePage>(); | |
containerRegistry.RegisterForNavigation<Views.SamplePage>(); | |
containerRegistry.RegisterForNavigation<Views.SettingsPage>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment