The ObservableCollection(Of T) Collection
The System.Collections.ObjectModel.ObservableCollection(Of T)
is a special collection that is typically used in WPF, Windows 8.x Store, and Windows Phone applications. Its main feature is that it implements the INotifyPropertyChanged
interface and can therefore 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 and, more generally, XAML 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 ...
Get Visual Basic 2015 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.