private async Task InitializeDataAsync() { sesionService = new SesionService(); friendsService = new FriendsService(); int idUsuario = await sesionService.GetSesionIdUserDbAsync(); var listaTemp = await friendsService.GetUsersByEventAsync(idUsuario, evento.idEventos); voluntariosCollection = new ObservableCollection <Voluntario>(); ListView listView = new ListView(); /*listView.RowHeight = 130; * ListViewBehaviorNoSelected lBNS = new ListViewBehaviorNoSelected(); * listView.Behaviors.Add(lBNS); * listView.ItemTemplate = new DataTemplate(typeof(CustomAttendantsCell));*/ foreach (var voluntario in listaTemp) { if (voluntario.amigos == "0") { voluntario.textoBoton = "Solicitud Pendiente"; } else if (voluntario.amigos == "1") { voluntario.textoBoton = "Ver"; } else if (voluntario.amigos == null) { voluntario.textoBoton = "Enviar Solicitud"; } if (voluntario.foto == null) { voluntario.foto = "photo.png"; } else { if (voluntario.foto.Contains("https:")) { } else { voluntario.foto = "http://www.palmapplicationsv.com/techoapp/public/" + voluntario.foto; } } voluntariosCollection.Add(voluntario); } }