Tag Archives: data-binding

Data Binding

Binding allows you to link a source object to some control. There are two types of bindings:

  • One Way Binding: Binds a source to the interface.
  • Two Way Binding: Binds a source to the interface and back to the source.
INotifyPropertyChanged interface allows sources to interact with the interface and update it as the values change.
To bind an object or list to an element you must set the DataContext property.
It is possible to bind an object or a list of objects and you can bind one element to another.
To customize how bound data will be displayed you can set the DataTemplate from a control.
It is possible to set Data Converters to convert the source type to another type.

Continue reading