1.

Explain data binding in WPF.

Answer»

In WPF, a mechanism called DataBinding allows data to be automatically UPDATED between BUSINESS models and user interfaces. Data binding enables WPF applications to PRESENT and access data in a consistent and simple way. In data binding, a connection is established between the application UI (User Interface) and the data that the application displays. When a binding is established, changes to data in the business model are automatically reflected in the UI elements that are bound to it and vice VERSA. In WPF, this is the most preferred method of getting data to the user interface. 


Source properties of a data binding can be either normal .NET properties or DependencyProperties, but target properties must always be DependencyProperties.  



Discussion

No Comment Found