Exemple #1
0
        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);
        }
Exemple #2
0
 protected override void Initialize()
 {
     base.Initialize();
     ViewModelsLocator.Initialize(this);
 }