protected override async void OnAppearing() { base.OnAppearing(); MainScroll.Scrolled += MainScroll_Scrolled; ListViewFollow.ItemTapped += ListViewTapped; ListViewSessions.ItemTapped += ListViewTapped; MainScroll.Parallax(); if (ViewModel.Sessions?.Count > 0) { return; } await ViewModel.ExecuteLoadSessionsCommandAsync(); var adjust = Device.OS != TargetPlatform.Android ? 1 : -ViewModel.Sessions.Count + 1; ListViewSessions.HeightRequest = (ViewModel.Sessions.Count * ListViewSessions.RowHeight) - adjust; if (_extension != null) { await _extension.Execute(ViewModel.Speaker); } }
protected async override void OnAppearing() { base.OnAppearing(); if (_extension != null) { await _extension.Execute(vm.Hack); } }
protected override async void OnAppearing() { base.OnAppearing(); MainScroll.Scrolled += MainScroll_Scrolled; ListViewSpeakers.ItemTapped += ListViewTapped; var count = ViewModel?.Session?.Speakers?.Count ?? 0; var adjust = Device.OS != TargetPlatform.Android ? 1 : -count + 1; if ((ViewModel?.Session?.Speakers?.Count ?? 0) > 0) { ListViewSpeakers.HeightRequest = (count * ListViewSpeakers.RowHeight) - adjust; } if (_extension != null) { await _extension.Execute(ViewModel.Session); } }