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 - Xamarin Tutorial
From the course: Xamarin.Forms Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Xamarin.Forms layouts4m 20s
-
(Locked)
Create a page using StackLayout5m 18s
-
(Locked)
Use RelativeLayout5m 28s
-
(Locked)
Databinding basics: Display data6m 54s
-
(Locked)
Bind and display a list of data7m 2s
-
(Locked)
Use CollectionView Grid layout2m 47s
-
(Locked)
Create a form page with Grid layout7m 29s
-
(Locked)
Binding to entry fields7m 43s
-
(Locked)
Use ScrollView2m
-
(Locked)
Add style to a control3m 14s
-
(Locked)
Trigger a style by property value2m 14s
-
(Locked)
-
-
-