IObservableVector<T>
IObservableVector<T>
IObservableVector<T>
IObservableVector<T>
Interface
Definition
Notifies listeners of changes to the vector.
public : interface IObservableVector<T>public interface IObservableVector<T>Public Interface IObservableVector<T>// You can use this interface in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.FoundationContract (introduced v1)
|
Remarks
The IObservableVector; interface enables clients to register for notification events for IVector; objects. For example, use notification events when you need to keep two data structures synchronized. In this scenario, you can use the IObservableVector; interface to receive notification of changes, so that the associated data structure can be updated.
Observable collections are mainly useful for XAML data binding scenarios. For more info, see Data binding in depth.
Interface inheritance
IObservableVector; inherits IVector; and IIterable;. Types that implement IObservableMap; also implement the interface members of IVector; and IIterable;.
.NET usage
IObservableVector; isn't hidden for .NET usage. However, it's more common to use the .NET ObservableCollection
Events
VectorChanged VectorChanged VectorChanged VectorChanged
Occurs when the vector changes.
public : abstract event VectorChangedEventHandler VectorChanged<T>public abstract event VectorChangedEventHandler VectorChanged<T>Public MustInherit Event VectorChanged<T>// You can use this event in JavaScript.
Remarks
The event handler receives an IVectorChangedEventArgs object that contains data that describes the event.
.NET usage
IObservableVector; isn't hidden for .NET usage. However, it's more common to use the .NET ObservableCollection
- See Also