Partager via


IXRNotifyCollectionChanged::GetCollectionChangedEvent (Compact 7)

3/12/2014

This method retrieves the custom event defined in a data-source object that contains a collection of items.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetCollectionChangedEvent(
    __out IXRCustomEvent<XRCollectionChangedCustomEventArgs, 
                                              IXRNotifyCollectionChanged> ** ppEvent
) = 0;

Parameters

  • ppEvent
    [out] The custom event, which is a pointer to an IXRCustomEvent object defined in the data-source object. The data-source object raises this event when items in the collection change.

Return Value

Returns S_OK if successful; otherwise, returns an HRESULT error code. For common error codes for Silverlight for Windows Embedded, see Silverlight for Windows Embedded Error Messages.

Remarks

The Silverlight for Windows Embedded data binding engine calls this method to retrieve the custom event defined in the data-source object if the object is an IXRListBox or IXRComboBox. The data-source object raises the custom event when items in the collection change.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRNotifyCollectionChanged
XRCollectionChangedCustomEventArgs
IXRCustomEvent
IXRPropertyBag::GetPropertyChangedEvent