Share via


IBindableObservableVector Interface

Definition

Extends IBindableVector by adding a VectorChanged event for change notification.

public interface class IBindableObservableVector : IBindableVector
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4263425334, 32383, 20368, 172, 154, 71, 73, 132, 170, 229, 18)]
struct IBindableObservableVector : IBindableVector
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(4263425334, 32383, 20368, 172, 154, 71, 73, 132, 170, 229, 18)]
public interface IBindableObservableVector : IBindableVector
Public Interface IBindableObservableVector
Implements IList
Attributes
Implements

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.

Properties

Size

Gets the number of items in the vector.

(Inherited from IBindableVector)

Methods

Append(Object)

Appends an item to the end of the vector.

(Inherited from IBindableVector)
Clear()

Removes all items from the vector.

(Inherited from IBindableVector)
First()

Returns a bindable iterator that iterates over the items in the collection.

(Inherited from IBindableIterable)
GetAt(UInt32)

Returns the item at the specified index in the vector.

(Inherited from IBindableVector)
GetView()

Returns an immutable view of the vector.

(Inherited from IBindableVector)
IndexOf(Object, UInt32)

Returns the index of a specified item in the vector.

(Inherited from IBindableVector)
InsertAt(UInt32, Object)

Inserts an item into a vector at a specified index.

(Inherited from IBindableVector)
RemoveAt(UInt32)

Removes the item at the specified index in the vector.

(Inherited from IBindableVector)
RemoveAtEnd()

Removes the last item in the vector.

(Inherited from IBindableVector)
SetAt(UInt32, Object)

Sets the item value at the specified index of the vector.

(Inherited from IBindableVector)

Events

VectorChanged

Occurs when the vector collection changes (add, delete, item change).

Applies to

See also