- Binding concepts
- Binding data to elements, lists, or other controls
- Binding techniques
- Implementing data binding
- Relaying commands to centralize an application's command logic
- Common scenarios for using commands in Xamarin.Forms
- Implementing converters
Skill Level Intermediate
- [Instructor] Back in the day, it was common to hard code control property names, reference property names and code behind, and then constantly re-execute the same block of code over and over to refresh updated values. Responding to actions, like click events was strictly connected to the control itself preventing scalable scenarios. With the introduction of development paradigms like MVVM combined with property notification advance to make values observable, as well as the concepts of commanding and converters, modern mobile development now has the ability to provide rich dynamic experiences.
This is another area where the Xamarin Forms platform really shines. I'm Scott J Peterson and this is Mastering Xamarin Forms Development Bindings, Commands, and Converters. In earlier sessions in this series, we walked through some of the great features available in the Xamarin Forms platform to enable layout, navigation, control development, and styling to make sure that our apps look great whether they're running on iOS, Android, or Windows. What do you do when you need to change colors, images, labels, or even culture specific values on the fly.
How do you get your UI to respond appropriately and follow best practices? What if you need to adapt the UI based on real time changes in the data or data model? Xamarin Forms truly provides a powerful foundation of services and concepts to enable this type of functionality. Like most of the sessions in this series, we're going to be spending most of our time in Visual Studio. But let's take a look at what we're going to cover in this session. First we're going to review some binding concepts and take a look at some common binding scenarios. And when I talk about binding, I'm not always just talking about data binding, but binding in general in the Xamarin Forms platform.
And then we're going to flip over to our cross platform Xamarin Forms at Paperboy, a news reader app we've been working on in this series and implement data binding at various levels in our app. Then we're going to talk about commands and commanding concepts and some common scenarios for commanding. And then once again, flip over to our news reader Paperboy app and move away from a click-based or event-based action paradigm in implement commanding in the app. And hen finally, we'll talk about this idea of converters, more specifically display converters and then see how we might enhance our Paperboy app by implementing converters.
And as always, we'll finish up with some great next steps.