Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Last active Nov 25, 2018
Embed
What would you like to do?
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