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

Binding to entry fields - Xamarin Tutorial

From the course: Xamarin.Forms Essential Training

Start my 1-month free trial

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…

Contents