Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Last active November 25, 2018 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeM-RP/e824fc66214637ef8a5c70cceca3e4d9 to your computer and use it in GitHub Desktop.
Save JoeM-RP/e824fc66214637ef8a5c70cceca3e4d9 to your computer and use it in GitHub Desktop.
Demonstrates updates needed for Prism 7 RegisterTypes
/// <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