IBindableObservableVector
IBindableObservableVector
IBindableObservableVector
IBindableObservableVector
Interface
Definition
Extends IBindableVector by adding a VectorChanged event for change notification.
public : interface IBindableObservableVector : IBindableIterable, IBindableVector
struct winrt::Windows::UI::Xaml::Interop::IBindableObservableVector : IBindableIterable, IBindableVector
public interface IBindableObservableVector : IEnumerable, IList
Public Interface IBindableObservableVector Implements IEnumerable, IList
- Inheritance
-
IListIListIEnumerableIEnumerableIBindableObservableVectorIBindableObservableVectorIBindableObservableVectorIBindableObservableVector
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced v10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
This interface supports the creation of data bindable collections in C++. When programming with .NET, you should use ObservableCollection(Of T) or implement IList and INotifyCollectionChanged. For more info, see Binding to collections.
Interface inheritance
IBindableObservableVector inherits IBindableVector and IBindableIterable. Types that implement IBindableObservableVector also implement the interface members of IBindableVector and IBindableIterable for C++ usage, or IList and IEnumerable for Microsoft .NET usage.
Events
VectorChanged VectorChanged VectorChanged VectorChanged |
Occurs when the vector collection changes (add, delete, item change). |
Methods
Append(Object) Append(Object) Append(Object) Append(Object) |
Appends an item to the end of the vector. (Inherited from IBindableVector) |
Clear Clear Clear Clear |
Removes all items from the vector. (Inherited from IBindableVector) |
First First First First |
Returns a bindable iterator that iterates over the items in the collection. (Inherited from IBindableIterable) |
GetAt(UInt32) GetAt(UInt32) GetAt(UInt32) GetAt(UInt32) |
Returns the item at the specified index in the vector. (Inherited from IBindableVector) |
GetView GetView GetView GetView |
Returns an immutable view of the vector. (Inherited from IBindableVector) |
InsertAt(UInt32,Object) InsertAt(UInt32,Object) InsertAt(UInt32,Object) InsertAt(UInt32,Object) |
Inserts an item into a vector at a specified index. (Inherited from IBindableVector) |
RemoveAt(UInt32) RemoveAt(UInt32) RemoveAt(UInt32) RemoveAt(UInt32) |
Removes the item at the specified index in the vector. (Inherited from IBindableVector) |
RemoveAtEnd RemoveAtEnd RemoveAtEnd RemoveAtEnd |
Removes the last item in the vector. (Inherited from IBindableVector) |
SetAt(UInt32,Object) SetAt(UInt32,Object) SetAt(UInt32,Object) SetAt(UInt32,Object) |
Sets the item value at the specified index of the vector. (Inherited from IBindableVector) |
Properties
Size Size Size Size |
Gets the number of items in the vector. (Inherited from IBindableVector) |
See also
- IList IList
- IEnumerable IEnumerable
- XAML data binding sample
Feedback
Loading feedback...