Example #1
0
        public override async Task DidLoad()
        {
            await base.DidLoad();

            await _homeViewModel.DidLoad();

            Title = string.Empty;
        }
Example #2
0
        private async void GoCommandExecute()
        {
            var viewModel = new HomeViewModel();

            await viewModel.DidLoad();

            if (RequestHomePage != null)
            {
                RequestHomePage(viewModel);
            }
        }
Example #3
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);
        }
Example #4
0
		private async void GoCommandExecute ()
		{
			var viewModel = new HomeViewModel ();

			await viewModel.DidLoad ();

			if(RequestHomePage != null) {
				RequestHomePage (viewModel);
			}
		}