Data Binding

Data Binding is another important concept in XAML controls. When a user enters data to the interface, you write some code in the code behind to extract the data from the controls and store it in a database somewhere. When it’s time to load that data back to the user interface, you would go through a difficult process to gain access to an instance of each control and appropriate property to the value of the data being loaded. So this process becomes more complex when you working with larger data entry forms. Data binding in XAML provides you a better way to catch your user interface controls to the underlying data being displayed. By making use of data binding you eliminate all the direct control access code traditionally required to update the user interface. Your user interface automatically update when the data changes. The rest of this section looks at a simple example of basic data binding in XAML.

Understanding Basic Data Entry

Data Binding Data Binding Reviewed by Afsar Murad on 02:20 Rating: 5
Powered by Blogger.