From the course: Xamarin.Forms Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Databinding basics: Display data

Databinding basics: Display data - Xamarin Tutorial

From the course: Xamarin.Forms Essential Training

Start my 1-month free trial

Databinding basics: Display data

- [Instructor] So far, we've been building our layout. We've been using a static values here to show up on the screen and display to some placeholder text. I'm going to start updating this now to actually display our product details so that when we pull those product back from the API, we'll be able to display the live data. You remember, over on our Product.cs, we have this definition of a product. It has a Name, a ID, a Description, and some image information, so a title or name for the image, a string that is the image path, and then a URI property that wraps that string into a URI. And that's going to become important in a second, as we'll see. So we go back to our ProductDetail now what we want to be able to do is, where this text property is, we want to display the actual text from that product. So we're going to use a Binding expression and choose the Path and set that equal to Name and close that out, and…

Contents