BindableVectorChangedEventHandler BindableVectorChangedEventHandler BindableVectorChangedEventHandler BindableVectorChangedEventHandler Delegate

Definition

Represents the method that will handle the VectorChanged event.

public : delegate void BindableVectorChangedEventHandler(IBindableObservableVector vector, Platform::Object e)
struct BindableVectorChangedEventHandler : winrt::Windows::Foundation::IUnknown
{
   BindableVectorChangedEventHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> BindableVectorChangedEventHandler(L lambda);
   template <typename F> BindableVectorChangedEventHandler(F* function);
   template <typename O, typename M> BindableVectorChangedEventHandler(O* object, M method);
   void operator()(winrt::Windows::UI::Xaml::Interop::IBindableObservableVector const& vector, winrt::Windows::Foundation::IInspectable const& e) const;
};
public delegate void BindableVectorChangedEventHandler(IBindableObservableVector vector, Object e)
Public Delegate Sub BindableVectorChangedEventHandler(vector As IBindableObservableVector, e As Object)
Parameters
vector
IBindableObservableVector IBindableObservableVector

The object where the handler is attached.

e
Object Object

Event data, loosely typed.

Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Analogous to the VectorChangedEventHandler; delegate. Although the parameter e is of type Object, you can cast it to type IVectorChangedEventArgs.

This delegate 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.

See Also