The ObservableCollection(Of T)
Collection
The System.Collections.ObjectModel.ObservableCollection(Of T)
is a special collection that is typically used in WPF applications. Its main feature is that it implements the INotifyPropertyChanged
interface, and therefore it can raise an event each time its items are affected by any changes, such as adding, replacing, or removing. Thanks to this mechanism, the ObservableCollection
is the most appropriate collection for the WPF data-binding because it provides support for two-way data-binding in which the user interface gets notification of changes on the collection and is automatically refreshed to reflect those changes. Although a practical example of this scenario is offered in the chapters about WPF, ...
Get Visual Basic® 2010 Unleashed 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.