WPF Data Binding (The quick guide)

Coding Diary

Here is a quick and brief guide to WPF data binding, hope it helps those new to WPF.

Most applications have some sort of internal data which they want to show in the UI for the user to view. So for example let’s say we have a sales systems which holds data about its customers. So I would expect a customers class that would hold the details of each individual customer, and this would be mapped to the UI somehow so when the users wants to see information about a particular customer they can.

In the WPF world the mapping to the UI is done using data bindings, as this is a good way for the UI to be mapped to actual objects, and to enable the UI to be refreshed when data is changed either through the user or the system.
Below is an example of how we can…

View original post 272 more words

Advertisements