27.12 Data-Driven GUIs with Data Binding
Often, an app needs to edit and display data. WPF provides a comprehensive model for allowing GUIs to interact with data.
Bindings
A data binding is a pointer to data, represented by a Binding object. WPF allows you to create a binding to a broad range of data types. At the simplest level, you could create a binding to a single property. Often, however, it’s useful to create a binding to a data object—an object of a class with properties that describe the data. You can also create a binding to objects like arrays, collections and data in an XML document. The versatility of the WPF data model even allows you to bind to data represented by LINQ statements.
Like other binding types, a data binding can be ...
Get Visual Basic® 2012 How to Program, Sixth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.