AzureMobileAuthN.SampleApp.Droid.Setup.InitializeViewLookup C# (CSharp) Method

InitializeViewLookup() protected method

protected InitializeViewLookup ( ) : void
return void
        protected override void InitializeViewLookup()
        {
            // TODO: At some point it would be nice to have an "official" way
            // TODO: to tell the plugin WHICH one of the user-created Views
            // TODO: should be navigated to after a successful login
            // TODO: Hard code the names "HomeViewModel" and "HomeView" for now.

            var viewModelViewLookup = new Dictionary<Type, Type>
            {
                {typeof(LoginViewModel), typeof(LoginView)},
                {typeof(HomeViewModel), typeof(HomeView)}
            };

            var container = Mvx.Resolve<IMvxViewsContainer>();
            container.AddAll(viewModelViewLookup);
        }