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.
Binding to entry fields - Xamarin Tutorial
From the course: Xamarin.Forms Essential Training
Binding to entry fields
- [Instructor] We've already added a little bit of data binding to our order form here for the product name and we've seen how to display that data, but we also have this entry and stepper that we're going to want to bind to the quantity. So, if we go back to our order and see, over here, under our Services, the Order class, you remember that we have a product name and a quantity that we're going to be able to bind to. Now, notice on the Quantity, it's not just a simple property getter and setter. We're checking on the setter to see if the value's changed and, if so, we're going to raise an event, this Property Changed event, and indicate that Quantity has changed. And that's all part of this pattern of the I Notify Property Changed interface that we've implemented. And this is critical when we get into data binding in order to update the UI that something has changed so it can reflect that change. So, now, if we come…
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)
-
-
-