public static void Initialize(Frame frame) { Dictionary <string, Type> views = new Dictionary <string, Type> { { Views.NAVIGATION_PAGE, typeof(NavigationPage) } }; Dictionary <string, Type> dialogs = new Dictionary <string, Type> { { Dialogs.NAVIGATION_DIALOG, typeof(DialogPage) }, { Dialogs.MAIN, typeof(MainDialog) } }; var container = WindowsContainer.CreateInstance <Container>(frame, views, dialogs); ViewModelsLocator.Initialize(container); }
protected override void Initialize() { base.Initialize(); ViewModelsLocator.Initialize(this); }