O'Reilly logo

Windows Phone 8 Application Development Essentials by Tomasz Szostak

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

Bindings

Basically, binding is a mechanism that the whole MVVM pattern relies on. It is very powerful and is the "glue" between the view and the exposed fields and commands.

In Chapter 1, XAML in Windows Phone, we learned about a mechanism called binding and saw what binding expressions are. The current chapter, being more practical, will show how to implement such bindings.

The functionality that we want to implement is shown in the following diagram:

Bindings

Model

We are going to use the Model class for storing data about users.

public class UserModel:INotifyPropertyChanged { private string name {get;set; public string Name { get; set { name = value; RaisePropertyChanged(); ...

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