Apart from presenting values from the view model in the user interface, it is also possible to adjust the values of the properties in the view model class based on actions performed by the user in the application. For instance, when a user changes the text entered in the textbox, a value of the associated property from the view model class could be automatically updated as well. Of course, you can also read an entered value, transform it in any way, and show a new value in other elements within the user interface. In this recipe, you will learn how to do all of this.
As an example, you will create a simple page with a textbox and a text block. In the textbox, the user can enter a name that will be automatically set as a value of the property in the view model class. What is more, its lowercase, uppercase, and reversed versions will be presented in a text block. Of course, all of these operations will be performed using the data binding mechanism.