示例#1
0
        private async void OnRequestHomePage(HomeViewModel hVm)
        {
            //Did Load will assign through Actions to Post view models, we need to assign this action early, but it is safe due to shared services
            hVm.RequestCommentPage = OnRequestCommentPage;

            if (_viewModel == null && IocContainer.GetContainer().Resolve <ITwitterApi>().GetType() == typeof(MockTwitterApi))
            {
                await Task.Delay(5000);
            }

            await hVm.DidLoad();

            //TODO add back in the grow animation
            _navigationService.NavigateTo(ViewModelLocator.HOME_KEY, hVm, null, Shared.Common.AnimationFlag.Grow);
        }