Learn how to use the ListView layout to display a list of products from the model, displaying the name and description. In addition, learn how to use the ItemTapped event to navigate to the product detail page and pass the current product as input.
- [Instructor] We've got a product detail.…We need a way to get all of our products…and drill into that.…So let's go back to our main page here.…We'll clear out the original content there.…We're gonna use a list view.…This is gonna allow us to display a list of items…and here for the items source, we wanna point to…a list of data we get back from our API.…And again we'll use data binding,…but this time instead of binding a particular property,…we're binding to a list.…And in fact, the list is going to be our binding context,…so I don't need to specify any other properties there…or provide any path,…we'll just look directly to the binding context.…
Now we've got a list but how are we gonna render the data?…So here we use the ListView.ItemTemplate property.…And inside of there, we're gonna create a data template.…And this is where those cells we talked about…will come into play.…We can use the various cell models to display data…inside our list.…So I wanna use a text cell.…And now we're gonna say the text property…
- Creating a Xamarin.Forms solution
- Navigating between pages
- Screen layouts and controls in Xamarin.Forms
- Data binding
- Adding style to a control
- Using a Xamarin.Essentials package
- Embedding native controls in your shared forms
- Writing custom renderers
Skill Level Beginner
Xamarin Development: Authentication and Identitywith Matt Milner1h 32m Intermediate
What you should know1m 21s
2. Layout and Controls
3. Native Platform Integration
4. Native Controls and Renderers
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.