private async Task NavigateToShoePage() { TrelloCard card = (TrelloCard)lvwTrelloLists.SelectedItem; List <Results2> shoeData = await ShoesRepository.GetShoesByNameAsync(card.name); Results2 shoe = shoeData[0]; var DetailPage = new Views.DetailPage(shoe); Navigation.PushModalAsync(DetailPage); }
//Frames vullen op basis van searchbar private async Task FillFramesByName(string name) { lvwShoes.ItemsSource = null; List <Results2> shoeData = await ShoesRepository.GetShoesByNameAsync(name); foreach (var item in shoeData) { if (item.ImgUrl == "") { item.ImgUrl = "https://stockx-assets.imgix.net/media/New-Product-Placeholder-Default.jpg?fit=fill&bg=FFFFFF&w=700&h=500&auto=format,compress&trim=color&q=90&dpr=2&updated_at=0"; } if (item.RetailPrice == "") { item.RetailPrice = "N/A"; } if (item.EstimatedMarketValue == "") { item.EstimatedMarketValue = "N/A"; } } //data aan itemsource binden Shoe = shoeData; lvwShoes.ItemsSource = shoeData; }