O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Binding a value to a textbox

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required