The View Models
When you create an application in WPF like the TimeTracker application, you will have a project that has some views, and each view will display some data. You can decide to display this data in a lot of different ways; some of them will require more effort than others.
In any case, you will need to present to each view a specific set of values to be displayed and a specific presentation logic that will be applied to the UI. In WPF you provide this information to the view by using an object that takes the name of DataContext
. In WPF you can think of the DataContext
dependency property of an element as a container of data; more precisely, it is the container for the data bound to that specific element. Because the DataContext
property ...
Get Applied WPF 4 in Context 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.