public override async Task DidLoad() { await base.DidLoad(); await _homeViewModel.DidLoad(); Title = string.Empty; }
private async void GoCommandExecute() { var viewModel = new HomeViewModel(); await viewModel.DidLoad(); if (RequestHomePage != null) { RequestHomePage(viewModel); } }
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); }
private async void GoCommandExecute () { var viewModel = new HomeViewModel (); await viewModel.DidLoad (); if(RequestHomePage != null) { RequestHomePage (viewModel); } }