software master at the intersection of technology, science and art

home

download

data binding


Databinding is the "attachment" to a UI element of a variable in the code behind. In olden days, the UI would be populated from a code behind variable manually. When the code changed in the UI, the code behind data was not automatically changed. After firing a CRUD event the UI changes were manually "moved" to the code behind variables.

In the MVC, MVVM, Ruby and all the modern architecures, there is a mechanism for linking the code behind variable to a UI Element so that a change in the UI automatically updates the code behind and visa versa. In all instances, this is done by linking OnChange Events to the variables. In WPF a class must implement the INotifyPropertyChange event and link the Setter of a property to call this event. In Angular, React, Vue.JS this is done in the UI interface and is discussed in the Angular section.